mirror of
https://github.com/status-im/react-native.git
synced 2025-02-03 21:24:31 +00:00
Update docs to use correct import statement
Summary: Docs currently contain incorrect example code. React should be imported from react since https://github.com/facebook/react-native/releases/tag/v0.25.1 Closes https://github.com/facebook/react-native/pull/9418 Differential Revision: D3719742 Pulled By: hramos fbshipit-source-id: 0d6a9cc8900c534e92ffe1f7883f81079934a6e0
This commit is contained in:
parent
53c5c4f8c3
commit
d20918319a
@ -70,10 +70,10 @@ To revert the `User Search Header Paths` and `Header Search Paths` build setting
|
||||
|
||||
### No transports available
|
||||
|
||||
React Native implements a polyfill for WebSockets. These [polyfills](https://github.com/facebook/react-native/blob/master/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js) are initialized as part of the react-native module that you include in your application through `import React from 'react-native'`. If you load another module that requires WebSockets, such as [Firebase](https://github.com/facebook/react-native/issues/3645), be sure to load/require it after react-native:
|
||||
React Native implements a polyfill for WebSockets. These [polyfills](https://github.com/facebook/react-native/blob/master/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js) are initialized as part of the react-native module that you include in your application through `import React from 'react'`. If you load another module that requires WebSockets, such as [Firebase](https://github.com/facebook/react-native/issues/3645), be sure to load/require it after react-native:
|
||||
|
||||
```
|
||||
import React from 'react-native';
|
||||
import React from 'react';
|
||||
import Firebase from 'firebase';
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user