itinance / itinance/react-native-fs

Manual link in react native android

Open
#994 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

As said for the android,
```
import com.rnfs.RNFSPackage; // <------- add package

public class MainApplication extends Application implements ReactApplication {
// ...
@Override
protected List getPackages() {
return Arrays.asList(
new MainReactPackage(), // <---- add comma
new RNFSPackage() // <---------- add package
);
}
```

Here is my try,
```
@Override
protected List getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
//return packages;
return packages(
new MainReactPackage(), // <---- add comma
new RNFSPackage() // <---------- add package
);
}
```

and at this step tutorial said to do 'react-native link react-native-fs but it doesn't work for me so I think the solution is to link manually but I don't know how to do that

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.