1

output of genymotion

content of .babelrc and the window of genymotion

content of App.js

I simply import Button from antd-mobile in a project of react native and use it like this. Why does such things happen? I have already installed babel-plugin-import, react-dom, antd-mobile. And I have changed .babelrc as showed above.

Sulthan
  • 128,090
  • 22
  • 218
  • 270
bigface00
  • 31
  • 2
  • I changed ant-mobile to ant-mobile-rn and it works! – bigface00 Jul 03 '18 at 02:16
  • 1
    I dont think you need react-dom using react-native :) if you found the solution, should answer it yourself, and then mark the question as resolved, you now as the SO style :D – David Noreña Jul 18 '18 at 14:32
  • Sorry, I just have no idea of how should one behave in stackoverflow. I will never make mistake like this one. And the solution is changing ant-mobile to ant-mobile-rn. It works for me. – bigface00 Jul 26 '18 at 00:44
  • 1
    No problem friend, we all learning always :D. Good choise ant-design-rn it's awesome ! – David Noreña Jul 26 '18 at 16:13

1 Answers1

0

Try Ant Design Mobile RN, Specifically designed for React Native.

Asbar Ali
  • 955
  • 1
  • 13
  • 26