mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Cleanup: Prefer React.Element over React$?Element
Reviewed By: vjeux Differential Revision: D4013049 fbshipit-source-id: 18a447fdbc584418d6a51770363bcd221e7fb7dc
This commit is contained in:
committed by
Facebook Github Bot
parent
beca25083a
commit
e8198aed8d
@@ -95,16 +95,16 @@ exports.examples = [
|
||||
{
|
||||
title: 'Subscribed AppState:',
|
||||
description: 'This changes according to the current state, so you can only ever see it rendered as "active"',
|
||||
render(): ReactElement<any> { return <AppStateSubscription showCurrentOnly={true} />; }
|
||||
render(): React.Element<any> { return <AppStateSubscription showCurrentOnly={true} />; }
|
||||
},
|
||||
{
|
||||
title: 'Previous states:',
|
||||
render(): ReactElement<any> { return <AppStateSubscription showCurrentOnly={false} />; }
|
||||
render(): React.Element<any> { return <AppStateSubscription showCurrentOnly={false} />; }
|
||||
},
|
||||
{
|
||||
platform: 'ios',
|
||||
title: 'Memory Warnings',
|
||||
description: 'In the IOS simulator, hit Shift+Command+M to simulate a memory warning.',
|
||||
render(): ReactElement<any> { return <AppStateSubscription showMemoryWarnings={true} />; }
|
||||
render(): React.Element<any> { return <AppStateSubscription showMemoryWarnings={true} />; }
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user