Skip to content

Commit e44b153

Browse files
committed
adding NetInfo api to repo
1 parent 005c6cd commit e44b153

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
5050
<img src='./Assets/readme/network.gif' width='300px'>
5151

52+
>调用NetInfo获取网络状态
53+
54+
<img src='./Assets/readme/netInfo.gif' width='300px'>
55+
5256
>调用本地API
5357
5458
<img src='./Assets/readme/cameraRoll.gif' width='300px'>

Diff for: components/localApi/NetInfo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default class NetInfoDemo extends Component{
3131
this.setState({
3232
isConnected:reach
3333
})
34-
} ,0
34+
} ,200
3535
)
3636
}
3737

0 commit comments

Comments
 (0)