react-native-clean-form
react-native-clean-form copied to clipboard
Text is dessapearing when I try to type
Text automatically is deleted (i.e. reverts back to the placeholder) when I type something. I'm working on android, any ideas?
I'm having this same issue. @Gerald17, did you find a solution?
Hi @crjackso
Not really for this. Its a weird issue but I replace this form with this https://github.com/halilb/react-native-textinput-effects/blob/master/README.md it has some cool effects for inputs and you can use state to handle data
Sorry work and my little kids take a lot of time actually ... but try to look on the issues.
Don't worry, still is really good form. I'll try to fix it too
I have the same issue, text disappers all the time, as well as selections from select
Maybe from not wiring up the form reducer when using redux-form. I do this sometimes.
I can confirm that this behaviour is caused by not wiring up redux-form
correctly, and basically not using the provided reducer in your redux store.
An example of how to wire up redux-form
correctly is in the example, specifically here. You can install the non-immutable reducer as follows:
import { reducer as form } from 'redux-form'
const reducer = combineReducers({ form })
const store = createStore(reducer, {})
If you use redux-form
for your Form, it will use the information it finds in Redux to populate the form fields. If you didn't install the reducer, then the state in Redux will stay perpetually empty, and this empty state will be transmitted to your form fields, which will manifest itself by disappearing the text as you type it. Mystery solved 😉 Hope this helps someone.
I actually think this issue can be closed...
yeah the reason text was disappearing is because you didnt have the reducer form setup so redux had nowhere to put the data