Last active
April 15, 2016 22:53
-
-
Save ryanlntn/f7bc7c17d56203ee11bfe4d84ea54a84 to your computer and use it in GitHub Desktop.
Including a package in MainActivity.java
This file contains 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
import com.myapp.imagepicker.*; // import the package | |
public class MainActivity extends ReactActivity { | |
@Override | |
protected List<ReactPackage> getPackages() { | |
return Arrays.<ReactPackage>asList( | |
new MainReactPackage(), | |
new ImagePickerPackage() // include it in getPackages | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment