Skip to content

Commit

Permalink
Add notes about working with react-native (#2328)
Browse files Browse the repository at this point in the history
  • Loading branch information
arniu authored and warmhug committed Feb 9, 2018
1 parent f408597 commit e435930
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/react/introduce.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ The following two ways used to load the **only components you used**, select one
```jsx
import { Button } from 'antd-mobile';
```

> Note: Some people reflected that it would be [unable to resolve module `react-dom`](https://github.com/ant-design/ant-design-mobile/issues/2054) in a project created with `react-native init`. If you encounter the same problem, you might try to install [babel-plugin-module-resolver](https://www.npmjs.com/package/babel-plugin-module-resolver).
- Manually import

Expand Down
4 changes: 3 additions & 1 deletion docs/react/introduce.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ AppRegistry.registerComponent('HelloWorldApp', () => HelloWorldApp);

```jsx
import { Button } from 'antd-mobile';
```
```

> 说明:有人反映通过 `react-native init` 创建的项目在使用时可能会报 [Unable to resolve module `react-dom`](https://github.com/ant-design/ant-design-mobile/issues/2054) 的错误 ,此时不妨安装 [babel-plugin-module-resolver](https://www.npmjs.com/package/babel-plugin-module-resolver) 试试~
- 手动引入

Expand Down

0 comments on commit e435930

Please sign in to comment.