diff --git a/native/keyboard/keyboard-input-host.react.js b/native/keyboard/keyboard-input-host.react.js --- a/native/keyboard/keyboard-input-host.react.js +++ b/native/keyboard/keyboard-input-host.react.js @@ -12,7 +12,6 @@ import { mediaGalleryKeyboardName } from '../media/media-gallery-keyboard.react'; import { activeMessageListSelector } from '../navigation/nav-selectors'; import { NavContext } from '../navigation/navigation-context'; -import { useStyles } from '../themes/colors'; import { type KeyboardState, KeyboardContext } from './keyboard-state'; type BaseProps = { @@ -21,7 +20,6 @@ type Props = { ...BaseProps, // Redux state - +styles: typeof unboundStyles, +activeMessageList: ?string, // withKeyboardState +keyboardState: KeyboardState, @@ -48,7 +46,6 @@ ? mediaGalleryKeyboardName : null; const kbInitialProps = { - ...this.props.styles.kbInitialProps, threadInfo: this.props.keyboardState.getMediaGalleryThread(), }; return ( @@ -92,25 +89,17 @@ }; } -const unboundStyles = { - kbInitialProps: { - backgroundColor: 'listBackground', - }, -}; - const ConnectedKeyboardInputHost: React.ComponentType = React.memo( function ConnectedKeyboardInputHost(props: BaseProps) { const inputState = React.useContext(InputStateContext); const keyboardState = React.useContext(KeyboardContext); invariant(keyboardState, 'keyboardState should be initialized'); const navContext = React.useContext(NavContext); - const styles = useStyles(unboundStyles); const activeMessageList = activeMessageListSelector(navContext); return (