Merge pull request #141 from RakanNimer/patch-1

[Docs] Added instructions for Android + RN 0.29
This commit is contained in:
Chris Dell 2016-08-09 21:32:09 +01:00 committed by GitHub
commit c13912d7cd
1 changed files with 15 additions and 0 deletions

View File

@ -114,6 +114,21 @@ public class MainActivity extends ReactActivity {
}
```
* For react-native 0.29.0 and higher ( in MainApplication.java )
```java
import com.rnfs.RNFSPackage; // <------- add package
public class MainApplication extends Application implements ReactApplication {
// ...
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(), // <---- add comma
new RNFSPackage() // <---------- add package
);
}
```
## Examples
### Basic