react-native-simple-modal
react-native-simple-modal copied to clipboard
When Android keyboard opens, it readjusts the height of the model
Is there a way to remove modal readjustment when the keyboard is opened? I have a TextInput in the modal and when the keyboard is opened the whole model readjusts itself based on the current smaller view on top of the keyboard.
@abeikverdi could you provide an example project where this is happening?
i fix it setting offset in the modal when show the weyboard
componentWillMount(){
Keyboard.addListener('keyboardDidShow', () =>{this.setState({offset:-100})});
Keyboard.addListener('keyboardDidHide', () =>{this.setState({offset:0})});
}
<Modal
open={this.props.modal.show}
closeOnTouchOutside={true}
modalStyle={UtilStyles.modalStyle}
offset={this.state.offset}
>
