mirror of
https://github.com/status-im/react-native-tcp.git
synced 2025-02-20 14:18:15 +00:00
fix incorrect android linking info in README
This commit is contained in:
parent
dd8d0e3fd4
commit
d44ee93f1a
27
README.md
27
README.md
@ -19,6 +19,33 @@ npm install --save react-native-tcp
|
||||
rnpm link react-native-tcp
|
||||
```
|
||||
|
||||
### Android
|
||||
|
||||
* Register and load the Native Module in your Main activity
|
||||
([import](examples/rctsockets/android/app/src/main/java/com/rctsockets/MainActivity.java#L4), [getPackages](examples/rctsockets/android/app/src/main/java/com/rctsockets/MainActivity.java#L39))
|
||||
|
||||
```java
|
||||
...
|
||||
|
||||
import com.peel.react.TcpSocketsModule; // <--- import //
|
||||
|
||||
public class MainActivity extends ReactActivity {
|
||||
...
|
||||
|
||||
/**
|
||||
* A list of packages used by the app. If the app uses additional views
|
||||
* or modules besides the default ones, add more packages here.
|
||||
*/
|
||||
@Override
|
||||
protected List<ReactPackage> getPackages() {
|
||||
return Arrays.<ReactPackage>asList(
|
||||
new MainReactPackage(),
|
||||
new TcpSocketsModule() // <- add here //
|
||||
);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Buckle up, Dorothy
|
||||
|
||||
## Usage
|
||||
|
Loading…
x
Reference in New Issue
Block a user