-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: crashes on all platforms except android
- Loading branch information
1 parent
f95db58
commit 983c325
Showing
6 changed files
with
32 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {NativeModules} from 'react-native'; | ||
import type StartupTimer from './types'; | ||
import type {NavBarButtonStyle} from './types'; | ||
|
||
const navBarManager: StartupTimer = { | ||
setButtonStyle: (style: NavBarButtonStyle) => { | ||
NativeModules.RNNavBarManager.setButtonStyle(style); | ||
}, | ||
}; | ||
|
||
export default navBarManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type NavBarManager from './types'; | ||
|
||
const navBarManager: NavBarManager = { | ||
setButtonStyle: () => {}, | ||
}; | ||
|
||
export default navBarManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
type NavBarButtonStyle = 'light' | 'dark'; | ||
|
||
type NavBarManager = { | ||
setButtonStyle: (style: NavBarButtonStyle) => void; | ||
}; | ||
|
||
export default NavBarManager; | ||
export type {NavBarButtonStyle}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters