-
-
Save joaquin-viera/d89b1a6c4acd5659c3b1f1f14b040c67 to your computer and use it in GitHub Desktop.
Landscape Orientation - MainApplication.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 org.wonday.orientation.OrientationPackage; | |
+import org.wonday.orientation.OrientationActivityLifecycle; | |
@Override | |
protected List<ReactPackage> getPackages() { | |
@SuppressWarnings("UnnecessaryLocalVariable") | |
List<ReactPackage> packages = new PackageList(this).getPackages(); | |
// Packages that cannot be autolinked yet can be added manually here, for example: | |
// packages.add(new MyReactNativePackage()); | |
+ packages.add(new OrientationPackage()); | |
return packages; | |
} | |
//... | |
@Override | |
public void onCreate() { | |
... | |
+ registerActivityLifecycleCallbacks(OrientationActivityLifecycle.getInstance()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment