react-native-hideable-view icon indicating copy to clipboard operation
react-native-hideable-view copied to clipboard

not able to edit fields in HideableView

Open ShailajaV opened this issue 7 years ago • 3 comments

In HideableView if we give any TextInput fields it is not allowing me to edit the fields.

this.props.nameChanged({ prop: 'name', value })} />

Even though name field is visible it is not allowing me enter anything.

ShailajaV avatar Jun 08 '17 02:06 ShailajaV

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.

osagie avatar Jun 08 '17 15:06 osagie

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

ShailajaV avatar Jun 08 '17 20:06 ShailajaV

Ok, I'll test it myself tomorrow. Hopefully I can reproduce your issue and figure out what's going on.

osagie avatar Jun 12 '17 07:06 osagie