Skip to content

Commit

Permalink
fix: crash when app is back from sleep (#3230)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Burtey <[email protected]>
  • Loading branch information
nicolasburtey and Nicolas Burtey authored Apr 29, 2024
1 parent c96e0ae commit 5cada1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions android/app/src/main/java/com/galoyapp/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import android.os.Bundle
import com.zoontek.rnbootsplash.RNBootSplash

class MainActivity : ReactActivity() {

/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
Expand All @@ -25,6 +24,6 @@ class MainActivity : ReactActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
RNBootSplash.init(this, R.style.BootTheme) // ⬅️ initialize the splash screen
super.onCreate(savedInstanceState) // super.onCreate(null) with react-native-screens
super.onCreate(null)
}
}

0 comments on commit 5cada1c

Please sign in to comment.