From d44ee93f1ae555b431f713e9d25909a49b977616 Mon Sep 17 00:00:00 2001 From: Andy Prock Date: Tue, 19 Jul 2016 10:39:47 -0700 Subject: [PATCH] fix incorrect android linking info in README --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 77046a9..8156caf 100644 --- a/README.md +++ b/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 getPackages() { + return Arrays.asList( + new MainReactPackage(), + new TcpSocketsModule() // <- add here // + ); + } +} +``` + Buckle up, Dorothy ## Usage