Closed alphazhe closed 2 years ago
We do not support react-native-web
at the moment
@1uokun Is there any workaround for this? Or can we use ant-design-mobile in react native project for mobile app and web app?
Import Component on demand loading(ðŸ”—æŒ‰éœ€åŠ è½½)
And do not import component who not support react-native-web
- import {Button} from '@ant-design/react-native';
↓ ↓ ↓ ↓ ↓
+ import Button from '@ant-design/react-native/lib/button';
Reproduction link
https://github.com/alphazhe/AntDesignTest
Steps to reproduce
Execute these commands one by one, once https://github.com/alphazhe/AntDesignTest repo is cloned
What is expected?
ActionSheetIOS error should not come if the project is run on web using react-native-web.
What is actually happening?
Even if we use single component from ant design on web, it does give ActionSheetIOS error. I have used only Button from ant, but it still gives the same error.
Please provide either fix or workaround to solve react-native-web related issues.