AndroidToRN icon indicating copy to clipboard operation
AndroidToRN copied to clipboard

model中含有TextInput,TextInput无法获取焦点,弹出软键盘,有没有解决办法??

Open CreateByCool opened this issue 6 years ago • 2 comments

<ModalView close={this.close} visible={this.state.visible} customerlayout={{flex: 1,}} contentView={this.renderContent}/>

弹出层renderContent### ,含有TextInput,无法弹出软键盘

renderContent = () => { return ( <View style={{ width: width-200, height: 100, flexDirection: 'row', alignItems: 'center', backgroundColor: 'white' }}> <TextInput autoFocus={true} placeholder={'1111'} maxLength={3} onChangeText={(text) => { console.log('text', text); }} style={{padding: 0, }} /> </View> ) };

大神有啥解决办法吗

CreateByCool avatar Dec 06 '18 03:12 CreateByCool

在modealUtils中ModelAndroid布局中去掉TouchableOpacity还是不行

CreateByCool avatar Dec 06 '18 03:12 CreateByCool

在modealUtils中ModelAndroid布局中去掉TouchableOpacity还是不行

CreateByCool avatar Dec 06 '18 03:12 CreateByCool