Skip to content

Commit

Permalink
fixup! fix(suite-native): use react-native-keyboard-controller for ke…
Browse files Browse the repository at this point in the history
…yboard handling
  • Loading branch information
yanascz committed Feb 6, 2025
1 parent bcefc03 commit 638e65f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions suite-native/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@trezor/styles": "workspace:*",
"@trezor/theme": "workspace:*",
"react": "18.2.0",
"react-native-keyboard-controller": "1.16.2",
"react-native-safe-area-context": "^4.14.0",
"react-redux": "8.0.7"
}
Expand Down
17 changes: 10 additions & 7 deletions suite-native/test-utils/src/BasicProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ReactNode } from 'react';
import { KeyboardProvider } from 'react-native-keyboard-controller';
import { SafeAreaProvider } from 'react-native-safe-area-context';

import { NavigationContainer } from '@react-navigation/native';
Expand All @@ -15,11 +16,13 @@ const renderer = createRenderer();
const theme = prepareNativeTheme({ colorVariant: 'standard' });

export const BasicProvider = ({ children }: ProviderProps) => (
<SafeAreaProvider>
<IntlProvider>
<StylesProvider theme={theme} renderer={renderer}>
<NavigationContainer>{children}</NavigationContainer>
</StylesProvider>
</IntlProvider>
</SafeAreaProvider>
<KeyboardProvider>
<SafeAreaProvider>
<IntlProvider>
<StylesProvider theme={theme} renderer={renderer}>
<NavigationContainer>{children}</NavigationContainer>
</StylesProvider>
</IntlProvider>
</SafeAreaProvider>
</KeyboardProvider>
);
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11202,6 +11202,7 @@ __metadata:
"@trezor/styles": "workspace:*"
"@trezor/theme": "workspace:*"
react: "npm:18.2.0"
react-native-keyboard-controller: "npm:1.16.2"
react-native-safe-area-context: "npm:^4.14.0"
react-redux: "npm:8.0.7"
languageName: unknown
Expand Down

0 comments on commit 638e65f

Please sign in to comment.