diff options
author | Ivan Chen <ivan@thetaggid.com> | 2021-01-22 15:03:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 15:03:01 -0500 |
commit | 18e9dc7509d0bf12dfabe7eba67e85553d4bac97 (patch) | |
tree | 04d303b7382761c60d1c27ffbc38b29e85fe0cd6 /src/components/onboarding/TaggBigInput.tsx | |
parent | d1a5193bc1d7117e8c331918ebaac68aa05b29a7 (diff) | |
parent | 324ae37524c8b6359e8b080fd8d10529f73dd9f8 (diff) |
Merge pull request #195 from shravyaramesh/tma576-fullscreen-comments
[TMA-576] Switched from modal to full screen view for comments
Diffstat (limited to 'src/components/onboarding/TaggBigInput.tsx')
-rw-r--r-- | src/components/onboarding/TaggBigInput.tsx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/components/onboarding/TaggBigInput.tsx b/src/components/onboarding/TaggBigInput.tsx index 4e8e1ef7..4212afd1 100644 --- a/src/components/onboarding/TaggBigInput.tsx +++ b/src/components/onboarding/TaggBigInput.tsx @@ -1,22 +1,30 @@ import React from 'react'; -import {View, TextInput, StyleSheet, TextInputProps} from 'react-native'; +import { + View, + TextInput, + StyleSheet, + TextInputProps, + ViewStyle, +} from 'react-native'; import * as Animatable from 'react-native-animatable'; -import {TAGG_LIGHT_PURPLE} from '../../constants'; +import { TAGG_LIGHT_PURPLE } from '../../constants'; interface TaggBigInputProps extends TextInputProps { valid?: boolean; invalidWarning?: string; attemptedSubmit?: boolean; width?: number | string; + containerStyle?: ViewStyle; } /** * An input component that receives all props a normal TextInput component does. TaggInput components grow to 60% of their parent's width by default, but this can be set using the `width` prop. */ const TaggBigInput = React.forwardRef((props: TaggBigInputProps, ref: any) => { return ( - <View style={styles.container}> + <View + style={props.containerStyle ? props.containerStyle : styles.container}> <TextInput - style={[{width: props.width}, styles.input]} + style={[{ width: props.width }, styles.input]} placeholderTextColor="#ddd" clearButtonMode="while-editing" ref={ref} |