mirror of
https://github.com/status-im/react-native-fs.git
synced 2025-02-28 15:00:29 +00:00
[Docs] Added instructions for Android + RN 0.29
This commit is contained in:
parent
b3cef00673
commit
79ff2a17f6
15
README.md
15
README.md
@ -106,6 +106,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user