diff --git a/src/SceneView.tsx b/src/SceneView.tsx index 29578181..2f1f7313 100644 --- a/src/SceneView.tsx +++ b/src/SceneView.tsx @@ -14,7 +14,7 @@ type Props = SceneRendererProps & lazyPreloadDistance: number; index: number; children: (props: { loading: boolean }) => React.ReactNode; - style?: StyleProp; + containerStyle?: StyleProp; }; type State = { @@ -92,7 +92,7 @@ export default class SceneView extends React.Component< }; render() { - const { navigationState, index, layout, style } = this.props; + const { navigationState, index, layout, containerStyle } = this.props; const { loading } = this.state; const focused = navigationState.index === index; @@ -110,7 +110,7 @@ export default class SceneView extends React.Component< : focused ? StyleSheet.absoluteFill : null, - style, + containerStyle, ]} > { diff --git a/src/TabView.tsx b/src/TabView.tsx index 6b4eebb7..e59406e4 100644 --- a/src/TabView.tsx +++ b/src/TabView.tsx @@ -112,7 +112,7 @@ export default function TabView({ lazy={typeof lazy === 'function' ? lazy({ route }) : lazy} lazyPreloadDistance={lazyPreloadDistance} navigationState={navigationState} - style={sceneContainerStyle} + containerStyle={sceneContainerStyle} > {({ loading }) => loading