ant-design / ant-design-mobile-rn

Ant Design for React Native
https://rn.mobile.ant.design/
MIT License
3.09k stars 611 forks source link

[Bug] Tabs内容点击事件没有被正确传递,键盘展开时,需要先点击收起之后才能点击真实内容 #1387

Open LvyLiu opened 3 weeks ago

LvyLiu commented 3 weeks ago

💬 Before You Start

🙋 Description/Step to reproduce

`<View style={{ flex: 1 }}> <TextInput value={text} onChangeText={setText} style={{ height: 40, borderColor: 'gray', borderWidth: 1 }} /> <Tabs tabs={[{ title: 'Tab1' }, { title: 'Tab2' }]}> <ScrollView style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }} keyboardShouldPersistTaps='handled'> <Text onPress={() => { console.log('测试') }}>Content of Tab1 <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>

Content of Tab2
        </View>
    </Tabs>
</View>`

🔴 Version

5.2.3

💻 Environment

iOS, Android

⚫️ Output of npx react-native info

System: OS: macOS 14.4.1 CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz Memory: 992.45 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 16.18.0 path: ~/.nvm/versions/node/v16.18.0/bin/node Yarn: version: 1.22.22 path: ~/Documents/develop/trippal_rn_im/Search/node_modules/.bin/yarn npm: version: 8.19.2 path: ~/.nvm/versions/node/v16.18.0/bin/npm Watchman: version: 2024.01.22.00 path: /usr/local/bin/watchman Managers: CocoaPods: version: 1.11.2 path: /Users/liu_jw/.rvm/gems/ruby-2.6.5/bin/pod SDKs: iOS SDK: Platforms:

Additional comments

No response