Skip to content

Commit af00d60

Browse files
committed
fix: last ditch effort
1 parent a012bd8 commit af00d60

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

examples/SampleApp/App.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const UserSelectorStack = createStackNavigator<UserSelectorParamList>();
7272
const App = () => {
7373
const { chatClient, isConnecting, loginUser, logout, switchUser } = useChatClient();
7474
const colorScheme = useColorScheme();
75-
const streamChatTheme = useStreamChatTheme();
75+
// const streamChatTheme = useStreamChatTheme();
7676

7777
useEffect(() => {
7878
const messaging = getMessaging();
@@ -119,13 +119,18 @@ const App = () => {
119119
}, []);
120120

121121
return (
122-
<ThemeProvider style={streamChatTheme}>
122+
<SafeAreaProvider
123+
style={{
124+
backgroundColor: '#FCFCFC',
125+
}}
126+
>
127+
<ThemeProvider>
123128
<NavigationContainer
124129
ref={RootNavigationRef}
125130
theme={{
126131
colors: {
127132
...(colorScheme === 'dark' ? DarkTheme : DefaultTheme).colors,
128-
background: streamChatTheme.colors?.white_snow || '#FCFCFC',
133+
background: '#FCFCFC',
129134
},
130135
fonts: (colorScheme === 'dark' ? DarkTheme : DefaultTheme).fonts,
131136
dark: colorScheme === 'dark',
@@ -142,6 +147,7 @@ const App = () => {
142147
</AppContext.Provider>
143148
</NavigationContainer>
144149
</ThemeProvider>
150+
</SafeAreaProvider>
145151
);
146152
};
147153

examples/SampleApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"react-native-haptic-feedback": "^2.3.3",
4545
"react-native-image-picker": "^8.2.1",
4646
"react-native-reanimated": "^3.18.0",
47-
"react-native-safe-area-context": "^5.4.1",
47+
"react-native-safe-area-context": "^5.4.0",
4848
"react-native-screens": "^4.11.1",
4949
"react-native-share": "^12.0.11",
5050
"react-native-svg": "^15.12.0",

examples/SampleApp/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7320,7 +7320,7 @@ react-native-reanimated@^3.18.0:
73207320
invariant "^2.2.4"
73217321
react-native-is-edge-to-edge "1.1.7"
73227322

7323-
react-native-safe-area-context@^5.4.1:
7323+
react-native-safe-area-context@^5.4.0:
73247324
version "5.4.1"
73257325
resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-5.4.1.tgz#6d04eac20f99622fa13895fa7ae96199f1ecf800"
73267326
integrity sha512-x+g3NblZ9jof8y+XkVvaGlpMrSlixhrJJ33BRzhTAKUKctQVecO1heSXmzxc5UdjvGYBKS6kPZVUw2b8NxHcPg==

0 commit comments

Comments
 (0)