Last active
August 24, 2019 11:12
-
-
Save i-emek/162a24e40efdbc6c86eda15921364465 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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