Android
May 24, 2018 ยท View on GitHub
Step 1
Add this to your AndroidManifest.xml file to autoreconnect fastly to DDP server if your device reconnects to network
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Optional
If running an android emulator you have to forward the port of your meteor app.
$ adb reverse tcp:3000 tcp:3000
Installing decorators
With RN >= 0.16.0 (Babel 6)
npm i --save-dev babel-plugin-transform-decorators-legacy babel-preset-react-nativein your project- Create a .babelrc file at the root of your project :
{
"presets": ["react-native"],
"plugins": ["transform-decorators-legacy"]
}
With RN <0.16.0 (Babel 5)
Use a .babelrc file at the root of your project that contains :
{
"optional": ["es7.decorators"]
}