File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -706,7 +706,7 @@ class ChannelInner extends PureComponent {
706706 ) ;
707707 }
708708
709- return < View > { core } </ View > ;
709+ return < View style = { { height : '100%' } } > { core } </ View > ;
710710 }
711711}
712712
Original file line number Diff line number Diff line change @@ -278,6 +278,13 @@ export class KeyboardCompatibleView extends React.PureComponent {
278278 animatedViewProps . onLayout = this . onLayout ;
279279 }
280280
281+ if ( ! this . props . enabled ) {
282+ return (
283+ < KeyboardContext . Provider value = { this . getContext ( ) } >
284+ { this . props . children }
285+ </ KeyboardContext . Provider >
286+ ) ;
287+ }
281288 return (
282289 < Animated . View { ...animatedViewProps } >
283290 < KeyboardContext . Provider value = { this . getContext ( ) } >
Original file line number Diff line number Diff line change 11import React from 'react' ;
2-
2+ import { Keyboard } from 'react-native' ;
33export const ChatContext = React . createContext ( { client : null } ) ;
44
55export function withChatContext ( OriginalComponent ) {
@@ -44,7 +44,9 @@ export function withMessageContentContext(OriginalComponent) {
4444 return getContextAwareComponent ( MessageContentContext , OriginalComponent ) ;
4545}
4646
47- export const KeyboardContext = React . createContext ( { } ) ;
47+ export const KeyboardContext = React . createContext ( {
48+ dismissKeyboard : Keyboard . dismiss ,
49+ } ) ;
4850
4951export function withKeyboardContext ( OriginalComponent ) {
5052 return getContextAwareComponent ( KeyboardContext , OriginalComponent ) ;
You can’t perform that action at this time.
0 commit comments