Skip to content

Instantly share code, notes, and snippets.

@i-emek
Last active August 24, 2019 11:12
Show Gist options
  • Save i-emek/162a24e40efdbc6c86eda15921364465 to your computer and use it in GitHub Desktop.
Save i-emek/162a24e40efdbc6c86eda15921364465 to your computer and use it in GitHub Desktop.
//First, in your settings.gradle add the following lines - path: gradle/setting.gradel
include ':react-native-wheel-picker-android'
project(':react-native-wheel-picker-android').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-wheel-picker-android/android')
// Then in your build.gradle - path: app/build.gradel
implementation project(':react-native-wheel-picker-android')
// Then in your MainApplication.java file, in your getPackages() method, add the following line: new WheelPickerPackage()
// so your method should look like this
@Override protected List<ReactPackage> getPackages() {
// Returning the Packages this way is better than calling the getPackages that was here
//by default which overridden my FbModule
return new ArrayList<>(
Arrays.<ReactPackage>asList(
new MainReactPackage(), new WheelPickerPackage()
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment