FaridSafi / react-native-gifted-form

📝 « One React-Native form component to rule them all »
MIT License
1.44k stars 214 forks source link

TextInputWidget `value` is hardcoded but can still enter text #119

Open Jonovono opened 6 years ago

Jonovono commented 6 years ago

Hi. I hardcode TextInputWidget with a value but I am still able to enter text:

        <GiftedForm.TextInputWidget
            name={'input'}
            value={"THIS VALUE"}
            // autoFocus={true}   
            placeholder={placeholder} 
            clearButtonMode='while-editing'   
            widgetStyles={{
                rowContainer: styles.widgetContainerStyle,
                textInputInline: styles.inputTextStyle
            }}

It seems like it's ignoring the value of 'value'. I basically want to control that value from redux completely. Is this a bug or am I missing how to do this?

Thanks.

sambwest commented 6 years ago
<GiftedForm.TextInputWidget
   ...
  editable={false}
  ...
/>