Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextInputWidget value is hardcoded but can still enter text #119

Open
Jonovono opened this issue Nov 12, 2017 · 1 comment
Open

TextInputWidget value is hardcoded but can still enter text #119

Jonovono opened this issue Nov 12, 2017 · 1 comment

Comments

@Jonovono
Copy link

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
Copy link
Contributor

sambwest commented Jun 1, 2018

<GiftedForm.TextInputWidget
   ...
  editable={false}
  ...
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants