mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 22:30:36 +08:00
Merge pull request #5 from react-navigation/useScreens
Use ScreenContainer and Screen components in stack - currently they fallback to RN's View
This commit is contained in:
@@ -21,6 +21,7 @@ import {
|
||||
|
||||
import Card from './StackViewCard';
|
||||
import Header from '../Header/Header';
|
||||
import { ScreenContainer } from './screens';
|
||||
|
||||
import TransitionConfigs from './StackViewTransitionConfigs';
|
||||
import { supportsImprovedSpringAnimation } from '../../utils/ReactNativeFeatures';
|
||||
@@ -469,9 +470,9 @@ class StackViewLayout extends React.Component {
|
||||
|
||||
return (
|
||||
<View {...handlers} style={containerStyle}>
|
||||
<View style={styles.scenes}>
|
||||
<ScreenContainer style={styles.scenes}>
|
||||
{scenes.map(s => this._renderCard(s))}
|
||||
</View>
|
||||
</ScreenContainer>
|
||||
{floatingHeader}
|
||||
</View>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user