Skip to content

Commit

Permalink
Fix duplicate SettingsScreen declaration in 'Basic Navigation' docume…
Browse files Browse the repository at this point in the history
…ntation (#6278)

Removed duplicate component declarations(`SettingsScreen`) and obsolete styles(`styles.settings`) in example code. And moved them under `HomeScreen`
  • Loading branch information
yongdamsh authored Jun 9, 2020
1 parent dbc11bd commit 469e69f
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions website/docs/docs-basic-navigation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const { View, Text, StyleSheet } = require('react-native');

const HomeScreen = (props) => {
return (
<View style={styles.home}>
<View style={styles.root}>
<Text>Home Screen</Text>
</View>
);
Expand Down Expand Up @@ -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 (
<View style={[styles.root, styles.settings]}>
<Text>Settings Screen</Text>
</View>
);
};

// Home screen declaration
const HomeScreen = (props) => {
return (
Expand Down Expand Up @@ -166,6 +156,7 @@ HomeScreen.options = {
}
};

// Settings screen declaration - this is the screen we'll be pushing into the stack
const SettingsScreen = () => {
return (
<View style={styles.root}>
Expand Down Expand Up @@ -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 (
<View style={[styles.root, styles.settings]}>
<Text>Settings Screen</Text>
</View>
);
};

// Home screen declaration
const HomeScreen = (props) => {
return (
Expand Down Expand Up @@ -279,6 +260,7 @@ HomeScreen.options = {
}
};

// Settings screen declaration - this is the screen we'll be pushing into the stack
const SettingsScreen = () => {
return (
<View style={styles.root}>
Expand Down

0 comments on commit 469e69f

Please sign in to comment.