From 469e69fb5c91b5712b1f5baf5f1c57df0a9f2ca0 Mon Sep 17 00:00:00 2001 From: Sanghyeon Lee Date: Tue, 9 Jun 2020 19:00:30 +0900 Subject: [PATCH] Fix duplicate SettingsScreen declaration in 'Basic Navigation' documentation (#6278) Removed duplicate component declarations(`SettingsScreen`) and obsolete styles(`styles.settings`) in example code. And moved them under `HomeScreen` --- website/docs/docs-basic-navigation.mdx | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/website/docs/docs-basic-navigation.mdx b/website/docs/docs-basic-navigation.mdx index 278056d1d41..a0719d6805f 100644 --- a/website/docs/docs-basic-navigation.mdx +++ b/website/docs/docs-basic-navigation.mdx @@ -20,7 +20,7 @@ const { View, Text, StyleSheet } = require('react-native'); const HomeScreen = (props) => { return ( - + Home Screen ); @@ -121,16 +121,6 @@ const { Navigation } = require('react-native-navigation'); const React = require('react'); const { View, Text, Button, StyleSheet } = require('react-native'); - -// Settings screen declaration - this is the screen we'll be pushing into the stack -const SettingsScreen = () => { - return ( - - Settings Screen - - ); -}; - // Home screen declaration const HomeScreen = (props) => { return ( @@ -166,6 +156,7 @@ HomeScreen.options = { } }; +// Settings screen declaration - this is the screen we'll be pushing into the stack const SettingsScreen = () => { return ( @@ -238,16 +229,6 @@ const { Navigation } = require('react-native-navigation'); const React = require('react'); const { View, Text, Button, StyleSheet } = require('react-native'); - -// Settings screen declaration - this is the screen we'll be pushing into the stack -const SettingsScreen = () => { - return ( - - Settings Screen - - ); -}; - // Home screen declaration const HomeScreen = (props) => { return ( @@ -279,6 +260,7 @@ HomeScreen.options = { } }; +// Settings screen declaration - this is the screen we'll be pushing into the stack const SettingsScreen = () => { return (