diff --git a/releases/next/docs/alertios.html b/releases/next/docs/alertios.html index 407e3391711..7674d300d1d 100644 --- a/releases/next/docs/alertios.html +++ b/releases/next/docs/alertios.html @@ -53,7 +53,7 @@ exports.examples }, { title: 'Prompt Options', - render(): React.Component { + render(): ReactElement { return <PromptOptions />; } }, @@ -101,10 +101,14 @@ exports.examples }]; class PromptOptions extends React.Component { + state: any; + customButtons: Array<Object>; + constructor(props) { super(props); - this.saveResponse = this.saveResponse.bind(this); + // $FlowFixMe this seems to be a Flow bug, `saveResponse` is defined below + this.saveResponse = this.saveResponse.bind(this); this.customButtons = [{ text: 'Custom OK', diff --git a/releases/next/docs/animated.html b/releases/next/docs/animated.html index 482ad180a77..5e0f0757eae 100644 --- a/releases/next/docs/animated.html +++ b/releases/next/docs/animated.html @@ -150,6 +150,8 @@ exports.examples 'mounts.', render: function() { class FadeInView extends React.Component { + state: any; + constructor(props) { super(props); this.state = { @@ -177,6 +179,8 @@ exports.examples } } class FadeInExample extends React.Component { + state: any; + constructor(props) { super(props); this.state = { diff --git a/releases/next/docs/pushnotificationios.html b/releases/next/docs/pushnotificationios.html index 2e0759700b6..93d30667501 100644 --- a/releases/next/docs/pushnotificationios.html +++ b/releases/next/docs/pushnotificationios.html @@ -114,6 +114,8 @@ class NotificationExample extends } class NotificationPermissionExample extends React.Component { + state: any; + constructor(props) { super(props); this.state = {permissions: null}; @@ -156,7 +158,7 @@ exports.description .examples = [ { title: 'Badge Number', - render(): React.Component { + render(): ReactElement { PushNotificationIOS.requestPermissions(); return ( @@ -175,13 +177,13 @@ exports.examples }, { title: 'Push Notifications', - render(): React.Component { + render(): ReactElement { return <NotificationExample />; } }, { title: 'Notifications Permissions', - render(): React.Component { + render(): ReactElement { return <NotificationPermissionExample />; } }];
Next →