ant-design / ant-design-mobile-rn

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

Document demo, code error #1184

Closed thomas-void0 closed 2 years ago

thomas-void0 commented 3 years ago

Reproduction link

https://rn.mobile.ant.design/components/flex-cn/

Steps to reproduce

open this link: https://rn.mobile.ant.design/components/flex-cn/ .you can find Demo Source Code error. image

What is expected?

Normal display Demo

What is actually happening?

TypeError Cannot read property 'style' of undefined

Environment Info
antd 4.2.0
React none
System macOs Big Sur 11.0.1 (20B29)
Browser chrome 版本 91.0.4472.77(正式版本) (x86_64)
lsabbagh commented 3 years ago

How to help in making an issue more noticeable? adding a comment? this bug exist on all the components! I believe it's urgent

1uokun commented 3 years ago

4.2.0用了 react-native-pager-view,暂时不支持在sandbox/web中预览 见:https://github.com/callstack/react-native-pager-view/issues/377#event-4909210661

我把sandbox的@ant-design/react-native版本改回3.1.15了, @bang88 如果需要优先保证能预览的话,合一下mr https://github.com/ant-design/ant-design-mobile-rn/pull/1186