Skip to content

Commit

Permalink
fix: context is never null (#1127)
Browse files Browse the repository at this point in the history
Changed instance of Context? to Context in `DebugMenuToolbar`
  • Loading branch information
cruzach authored and kacperkapusciak committed Sep 14, 2021
1 parent 900cff1 commit 614bdef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ class ScreenStackHeaderConfig(context: Context) : ViewGroup(context) {
mDirection = direction
}

private class DebugMenuToolbar(context: Context?) : Toolbar(context) {
private class DebugMenuToolbar(context: Context) : Toolbar(context) {
override fun showOverflowMenu(): Boolean {
(context.applicationContext as ReactApplication)
.reactNativeHost
Expand Down

0 comments on commit 614bdef

Please sign in to comment.