Skip to content

Commit

Permalink
fix: prevent react-native-screens from causing crashes on android (#2268
Browse files Browse the repository at this point in the history
)

Signed-off-by: Bryce McMath <[email protected]>
  • Loading branch information
bryce-mcmath authored Nov 14, 2024
1 parent 06deb7b commit feea0c1
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 feea0c1

Please sign in to comment.