Landscape Orientation - MainActivity.java
// ... | |
+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