diff options
author | Hailey <me@haileyok.com> | 2024-05-05 03:14:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-05 03:14:14 -0700 |
commit | 6b615f3720376da24b99624622b9dd5869d481aa (patch) | |
tree | 074b0d3c0eae7b0aceb145ce7be35b8aa2333833 /src | |
parent | c4160c25a315eab0113edf1ef1bde76a44d695c3 (diff) | |
download | voidsky-6b615f3720376da24b99624622b9dd5869d481aa.tar.zst |
only use `KeyboardProvider` in conversation screen (#3869)
Diffstat (limited to 'src')
-rw-r--r-- | src/App.native.tsx | 5 | ||||
-rw-r--r-- | src/screens/Messages/Conversation/index.tsx | 11 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index b60d024d5..9fa82e9cd 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -4,7 +4,6 @@ import 'view/icons' import React, {useEffect, useState} from 'react' import {GestureHandlerRootView} from 'react-native-gesture-handler' -import {KeyboardProvider} from 'react-native-keyboard-controller' import {RootSiblingParent} from 'react-native-root-siblings' import { initialWindowMetrics, @@ -157,9 +156,7 @@ function App() { <LightboxStateProvider> <I18nProvider> <PortalProvider> - <KeyboardProvider> - <InnerApp /> - </KeyboardProvider> + <InnerApp /> </PortalProvider> </I18nProvider> </LightboxStateProvider> diff --git a/src/screens/Messages/Conversation/index.tsx b/src/screens/Messages/Conversation/index.tsx index ae54c563e..db07ed2ed 100644 --- a/src/screens/Messages/Conversation/index.tsx +++ b/src/screens/Messages/Conversation/index.tsx @@ -1,5 +1,6 @@ import React, {useCallback} from 'react' import {TouchableOpacity, View} from 'react-native' +import {KeyboardProvider} from 'react-native-keyboard-controller' import {AppBskyActorDefs} from '@atproto/api' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {msg} from '@lingui/macro' @@ -61,10 +62,12 @@ function Inner() { } return ( - <CenteredView style={{flex: 1}} sideBorders> - <Header profile={otherProfile} /> - <MessagesList /> - </CenteredView> + <KeyboardProvider> + <CenteredView style={{flex: 1}} sideBorders> + <Header profile={otherProfile} /> + <MessagesList /> + </CenteredView> + </KeyboardProvider> ) } |