diff options
author | Brian Kim <brian@tagg.id> | 2021-06-16 23:53:03 +0900 |
---|---|---|
committer | Brian Kim <brian@tagg.id> | 2021-06-16 23:53:03 +0900 |
commit | 8560936e0dc21ee2d06677c766a0bbcbc93b6de0 (patch) | |
tree | 3b9e9bcedc75aedc24d5cdb68bf83a7c0abb8e9d /src/components/comments/MentionInputControlled.tsx | |
parent | 902ad06d502024e1e42187887e07a7ac59d662e8 (diff) |
Further merges with master
Diffstat (limited to 'src/components/comments/MentionInputControlled.tsx')
-rw-r--r-- | src/components/comments/MentionInputControlled.tsx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/components/comments/MentionInputControlled.tsx b/src/components/comments/MentionInputControlled.tsx index de52d1c1..0965e318 100644 --- a/src/components/comments/MentionInputControlled.tsx +++ b/src/components/comments/MentionInputControlled.tsx @@ -45,6 +45,12 @@ type MentionInputControlledProps = Omit<TextInputProps, 'onChange'> & { addComment?: () => any | null; NewText?: FC<any>; + + theme?: 'dark' | 'white'; + + keyboardVisible?: boolean; + + comment?: string; }; const MentionInputControlled: FC<MentionInputControlledProps> = ({ @@ -63,6 +69,12 @@ const MentionInputControlled: FC<MentionInputControlledProps> = ({ NewText, + theme = 'white', + + keyboardVisible = true, + + comment = '', + ...textInputProps }) => { const textInput = useRef<TextInput | null>(null); @@ -191,6 +203,9 @@ const MentionInputControlled: FC<MentionInputControlledProps> = ({ handleSelectionChange={handleSelectionChange} parts={parts} addComment={addComment} + theme={theme} + keyboardVisible={keyboardVisible} + comment={comment} /> ) : ( <View style={containerStyle}> |