Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/libs/NavBarManager/index.android.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import {NativeModules} from 'react-native';
import Log from '@libs/Log';
import type StartupTimer from './types';
import type {NavBarButtonStyle} from './types';

const navBarManager: StartupTimer = {
setButtonStyle: (style: NavBarButtonStyle) => {
if (!NativeModules.RNNavBarManager) {
Log.hmmm('RNNavBarManager not found');
return;
}

NativeModules.RNNavBarManager.setButtonStyle(style);
},
};
Expand Down
4 changes: 4 additions & 0 deletions src/libs/Navigation/AppNavigator/AuthScreens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ function AuthScreens({session, lastOpenedPublicRoomID, initialLastUpdateIDApplie
});

useEffect(() => {
if (!NavBarManager) {
Log.hmmm('RNNavBarManager not found in AuthScreens');
return;
}
NavBarManager.setButtonStyle(theme.navigationBarButtonsStyle);

return () => {
Expand Down