diff --git a/Example/Example.js b/Example/Example.js index 788afc645..b8840dd46 100644 --- a/Example/Example.js +++ b/Example/Example.js @@ -47,14 +47,14 @@ const reducerCreate = params=>{ export default class Example extends React.Component { render() { - return + return - + diff --git a/Example/components/Launch.js b/Example/components/Launch.js index ec3f9aa85..baae75a21 100644 --- a/Example/components/Launch.js +++ b/Example/components/Launch.js @@ -14,7 +14,7 @@ const styles = StyleSheet.create({ class Launch extends React.Component { render(){ return ( - + Launch page diff --git a/README.md b/README.md index 7d4584869..8f1820585 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,7 @@ class App extends React.Component { | rightButtonTextStyle | Text style | | optional style override for the right title element | | clone | bool | | Scenes marked with `clone` will be treated as templates and cloned into the current scene's parent when pushed. See example. | | tabBarStyle | View style | | optional style override for the Tabs component | +| sceneStyle | View style | { flex: 1 } | optional style override for the Scene's component | | other props | | | all properties that will be passed to your component instance | ## Example diff --git a/src/DefaultRenderer.js b/src/DefaultRenderer.js index 56cc17010..146f4bbfd 100644 --- a/src/DefaultRenderer.js +++ b/src/DefaultRenderer.js @@ -6,7 +6,7 @@ * LICENSE file in the root directory of this source tree. * */ -import React, {Component, Animated, StyleSheet, ScrollView, Text, NavigationExperimental} from "react-native"; +import React, {Component, Animated, StyleSheet, ScrollView, View, Text, NavigationExperimental} from "react-native"; const { AnimatedView: NavigationAnimatedView, Card: NavigationCard, @@ -37,7 +37,11 @@ export default class DefaultRenderer extends Component { Component = TabBar; } if (Component) { - return + return ( + + + + ) } const selected = navigationState.children[navigationState.index];