Skip to content

Commit

Permalink
fix: prevent react-native-screens from causing crashes on android
Browse files Browse the repository at this point in the history
Signed-off-by: Bryce McMath <[email protected]>
  • Loading branch information
bryce-mcmath committed Nov 13, 2024
1 parent 555eb6a commit 73bfc11
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
import androidx.core.app.NotificationManagerCompat;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;

public class MainActivity extends ReactActivity {

// react-native-screens override
// https://github.com/software-mansion/react-native-screens#android
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(null);
}

/**
* Detects changes in device orientation and sends them to JavaScript by broadcasting an event.
* This is used to support the camera on different tablet orientations.
Expand Down

0 comments on commit 73bfc11

Please sign in to comment.