mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-02 18:41:17 +00:00
Add syntax highlighting to docs where missing
This commit is contained in:
committed by
Nicolas Gallagher
parent
2dff45b561
commit
b0f35f6c66
@@ -51,7 +51,7 @@ into `runApplication`
|
|||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```
|
```js
|
||||||
AppRegistry.registerComponent('MyApp', () => AppComponent)
|
AppRegistry.registerComponent('MyApp', () => AppComponent)
|
||||||
AppRegistry.runApplication('MyApp', {
|
AppRegistry.runApplication('MyApp', {
|
||||||
initialProps: {},
|
initialProps: {},
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ internet connectivity.
|
|||||||
|
|
||||||
Fetching the connection type:
|
Fetching the connection type:
|
||||||
|
|
||||||
```
|
```js
|
||||||
NetInfo.fetch().then((connectionType) => {
|
NetInfo.fetch().then((connectionType) => {
|
||||||
console.log('Connection type:', connectionType);
|
console.log('Connection type:', connectionType);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user