-
-
Save joaquin-viera/fc77932532eea6fe42e9fc0a8d02eaaa to your computer and use it in GitHub Desktop.
Landscape Orientation - 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 android.content.Intent; | |
+import android.content.res.Configuration; | |
public class MainActivity extends ReactActivity { | |
+ @Override | |
+ public void onConfigurationChanged(Configuration newConfig) { | |
+ super.onConfigurationChanged(newConfig); | |
+ Intent intent = new Intent("onConfigurationChanged"); | |
+ intent.putExtra("newConfig", newConfig); | |
+ this.sendBroadcast(intent); | |
+ } | |
// ...... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment