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:
Brent Vatne
2018-08-14 08:56:00 -07:00
parent f1e111f598
commit b9bc7b147d
3 changed files with 28 additions and 6 deletions

View File

@@ -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>
);