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

修改文档使用expo sdk32以上版本时出现的问题 #535

Merged
merged 1 commit into from
Jun 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/react/introduce.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ class App extends React.Component {
}
}
```
This is not the way you would write it if you were using expo sdk32 or above
```jsx
import { Font } from 'expo';
```
Instead, use a separate name
```jsx
import * as Font from 'expo-font';
```

### 3. Usage

Expand Down
10 changes: 9 additions & 1 deletion docs/react/introduce.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,15 @@ class App extends React.Component {
}
}
```

当你使用expo sdk32以上版本时已经弃用了下面这种写法

```jsx
import { Font } from 'expo';
```
转而使用单独命名的
```jsx
import * as Font from 'expo-font';
```
### 3. 使用

组件使用实例:
Expand Down