react-native-hideable-view
react-native-hideable-view copied to clipboard
not able to edit fields in HideableView
In HideableView if we give any TextInput fields it is not allowing me to edit the fields.
Even though name field is visible it is not allowing me enter anything.
Do you have a bit more code than that. I haven't had any issues with inputs and that isn't enough for me to recreate your issue.
My code is like below: onButtonPress() { this.setState({ visible: !this.state.visible }); }
in render method: <HideableView visible={this.state.visible}> <View> <InputText placeholder={PLACEHOLDER_FULLNAME} value={this.props.fullName} uniqueName={FULLNAME} validate={this.validations} onChange={this.handleChange.bind(this)} onChangeText={value => this.props.userDetailsChanged({ prop: 'fullName', value })} /> </View> </HideableView>
const mapStateToProps = ({ auth }) => { const { fullName } = auth; return { fullName };
If i dont put <HideableView> in my code i.e. not hiding anything then it is allowing me to enter input value.
But now it is not allowing me to enter anything. Can u please have a look on the below url. In the display name field it is not allowing me to enter anything. But email field is not in the HidableView so it is allowing me to enter anything in the email field.
https://user-images.githubusercontent.com/25256931/26948162-fb6bd01a-4c5a-11e7-89fd-f24f9ad12512.png
Ok, I'll test it myself tomorrow. Hopefully I can reproduce your issue and figure out what's going on.