diff --git a/docs/next/modal.html b/docs/next/modal.html index 95e4a3585a5..ec803d55650 100644 --- a/docs/next/modal.html +++ b/docs/next/modal.html @@ -34,7 +34,7 @@
Note: If you need more control over how to present modals over the rest of your app, then consider using a top-level Navigator.
import React, {Component} from 'react';
-import {Modal, Text, TouchableHighlight, View} from 'react-native';
+import {Modal, Text, TouchableHighlight, View, Alert} from 'react-native';
class ModalExample extends Component {
state = {
@@ -53,7 +53,7 @@
transparent={false}
visible={this.state.modalVisible}
onRequestClose={() => {
- alert('Modal has been closed.');
+ Alert.alert('Modal has been closed.');
}}>
<View style={{marginTop: 22}}>
<View>
diff --git a/docs/next/modal/index.html b/docs/next/modal/index.html
index 95e4a3585a5..ec803d55650 100644
--- a/docs/next/modal/index.html
+++ b/docs/next/modal/index.html
@@ -34,7 +34,7 @@
Note: If you need more control over how to present modals over the rest of your app, then consider using a top-level Navigator.
import React, {Component} from 'react';
-import {Modal, Text, TouchableHighlight, View} from 'react-native';
+import {Modal, Text, TouchableHighlight, View, Alert} from 'react-native';
class ModalExample extends Component {
state = {
@@ -53,7 +53,7 @@
transparent={false}
visible={this.state.modalVisible}
onRequestClose={() => {
- alert('Modal has been closed.');
+ Alert.alert('Modal has been closed.');
}}>
<View style={{marginTop: 22}}>
<View>
diff --git a/docs/next/navigation.html b/docs/next/navigation.html
index 97a05737187..1991eb4dd05 100644
--- a/docs/next/navigation.html
+++ b/docs/next/navigation.html
@@ -47,6 +47,8 @@ const App = createStackNavigator({
Home: { screen: HomeScreen },
Profile: { screen: ProfileScreen },
});
+
+export default App;
Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:
class HomeScreen extends React.Component {
diff --git a/docs/next/navigation/index.html b/docs/next/navigation/index.html
index 97a05737187..1991eb4dd05 100644
--- a/docs/next/navigation/index.html
+++ b/docs/next/navigation/index.html
@@ -47,6 +47,8 @@ const App = createStackNavigator({
Home: { screen: HomeScreen },
Profile: { screen: ProfileScreen },
});
+
+export default App;
Each screen component can set navigation options such as the header title. It can use action creators on the navigation prop to link to other screens:
class HomeScreen extends React.Component {