Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Unknown prop platform on <div> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop #1278

Closed
xiaobie123 opened this issue May 8, 2017 · 3 comments · Fixed by #1276

Comments

@xiaobie123
Copy link

Version

1.1.2

Environment

浏览器

Reproduction link

https://github.com/ant-design/antd-mobile-samples/tree/master/antm-roadhog

Steps to reproduce

https://github.com/ant-design/antd-mobile-samples/tree/master/antm-roadhog update "antd-mobile": "^1.1.2",

What is expected?

no Warning

What is actually happening?

warning.js:36 Warning: RouterContext: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.

warning.js:36 Warning: Unknown prop platform on

tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
in div (created by ListItem)
in Touchable (created by ListItem)
in ListItem (created by MobileDemo)
in div (created by PopupPicker)
in PopupPicker (created by PopupDatePicker)
in PopupDatePicker (created by DatePicker)
in DatePicker (created by MobileDemo)
in div (created by List)
in div (created by List)
in List (created by MobileDemo)
in div (created by MobileDemo)
in MobileDemo (created by Form(MobileDemo))
in Form(MobileDemo) (created by Connect(Form(MobileDemo)))
in Connect(Form(MobileDemo)) (created by RouterContext)
in RouterContext (created by Router)
in Router (created by Unknown)
in Provider (created by Unknown)
in Unknown


版本:1.1.2

https://github.com/ant-design/antd-mobile-samples/tree/master/antm-roadhog
今天刚把这个demo的ant-design-mobile版本更新到1.1.2,打开项目,在console里就又多了一个Warning: Unknown prop platform on

tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
in div (created by ListItem)
in Touchable (created by ListItem)
in ListItem (created by MobileDemo)
in div (created by PopupPicker)
in PopupPicker (created by PopupDatePicker)
in PopupDatePicker (created by DatePicker)
in DatePicker (created by MobileDemo)
in div (created by List)
in div (created by List)
in List (created by MobileDemo)
in div (created by MobileDemo)
in MobileDemo (created by Form(MobileDemo))
in Form(MobileDemo) (created by Connect(Form(MobileDemo)))
in Connect(Form(MobileDemo)) (created by RouterContext)
in RouterContext (created by Router)
in Router (created by Unknown)
in Provider (created by Unknown)
in Unknown

ps:还有这些警告
(unknown) Warning: RouterContext: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.
什么时候可以修复,

@chengky
Copy link

chengky commented May 8, 2017

同样遇到,React 15.5.4,antd-mobile 1.1.2,用到List即会有此警告。使用antd-mobile 1.1.1没有问题。

@paranoidjk
Copy link
Contributor

@himStone
Copy link

himStone commented May 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants