mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-18 04:13:51 +08:00
explicit type args in react-native-github
Reviewed By: vjeux Differential Revision: D3342856 fbshipit-source-id: ba5a4d5529fc9d1d1efe98cc175d718c5f044a5b
This commit is contained in:
committed by
Facebook Github Bot 9
parent
caa2baee9d
commit
ac5636dd59
@@ -162,22 +162,22 @@ exports.examples = [
|
||||
{
|
||||
title: 'NetInfo.isConnected',
|
||||
description: 'Asynchronously load and observe connectivity',
|
||||
render(): ReactElement { return <IsConnected />; }
|
||||
render(): ReactElement<any> { return <IsConnected />; }
|
||||
},
|
||||
{
|
||||
title: 'NetInfo.update',
|
||||
description: 'Asynchronously load and observe connectionInfo',
|
||||
render(): ReactElement { return <ConnectionInfoCurrent />; }
|
||||
render(): ReactElement<any> { return <ConnectionInfoCurrent />; }
|
||||
},
|
||||
{
|
||||
title: 'NetInfo.updateHistory',
|
||||
description: 'Observed updates to connectionInfo',
|
||||
render(): ReactElement { return <ConnectionInfoSubscription />; }
|
||||
render(): ReactElement<any> { return <ConnectionInfoSubscription />; }
|
||||
},
|
||||
{
|
||||
platform: 'android',
|
||||
title: 'NetInfo.isConnectionExpensive (Android)',
|
||||
description: 'Asynchronously check isConnectionExpensive',
|
||||
render(): ReactElement { return <IsConnectionExpensive />; }
|
||||
render(): ReactElement<any> { return <IsConnectionExpensive />; }
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user