From fa22019a202e381e53c9c4a76141d228f51f7f44 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Wed, 7 Feb 2018 10:42:06 -0800 Subject: [PATCH] Add custom back button example --- .../NavigationPlayground/js/SimpleStack.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/packages/react-navigation/examples/NavigationPlayground/js/SimpleStack.js b/packages/react-navigation/examples/NavigationPlayground/js/SimpleStack.js index 4242fafe..1717799f 100644 --- a/packages/react-navigation/examples/NavigationPlayground/js/SimpleStack.js +++ b/packages/react-navigation/examples/NavigationPlayground/js/SimpleStack.js @@ -9,7 +9,7 @@ import type { import * as React from 'react'; import { Button, ScrollView, StatusBar } from 'react-native'; -import { StackNavigator, SafeAreaView } from 'react-navigation'; +import { StackNavigator, SafeAreaView, withNavigation } from 'react-navigation'; import SampleText from './SampleText'; type MyNavScreenProps = { @@ -17,6 +17,20 @@ type MyNavScreenProps = { banner: React.Node, }; +class MyBackButton extends React.Component { + render() { + return ( +