Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 821 Bytes

Install.md

File metadata and controls

41 lines (28 loc) · 821 Bytes

Android

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-native in 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"]
}