Skip to content

Commit 445d056

Browse files
authored
Update README.md
1 parent 5f161c4 commit 445d056

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ android自动刷新组件见[react-native-SmartRefreshLayout](https://github.com
88
`yarn add react-native-mjrefresh-lower`(rn<=0.54)
99
(已经安装了yarn)
1010
## 第二步
11-
运行 `react-native link react-native-mjrefresh`
11+
运行 `react-native link react-native-mjrefresh`(rn>=0.55)<br/>
12+
`react-native link react-native-mjrefresh-lower`(rn<=0.54)
1213
## 第三部使用
1314
在工程中导入:
1415
```js
15-
import MJRefresh,{ScrollView} from 'react-native-mjrefresh'
16+
import MJRefresh,{ScrollView} from 'react-native-mjrefresh'//rn>=0.55
17+
//import MJRefresh,{ScrollView} from 'react-native-mjrefresh-lower'//rn<=0.54
18+
1619
//该ScrollView兼容官方所有的属性和方法,refreshControl也可以使用官方的RefreshControl
1720
state={
1821
text:'下拉刷新'

0 commit comments

Comments
 (0)