Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Add style for scene in route config #418

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ExNavigationStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ class ExNavigationStack extends PureComponent<any, Props, State> {
const latestRoute = this._getRouteAtIndex(props.scenes, props.scenes.length - 1);

const latestRouteConfig = latestRoute.config;
const { sceneAnimations, gestures } = latestRouteConfig.styles || {};
const { sceneAnimations, gestures, style } = latestRouteConfig.styles || {};

const scene: any = props.scene;
const routeForScene = scene.route;
Expand All @@ -692,6 +692,7 @@ class ExNavigationStack extends PureComponent<any, Props, State> {
route: routeForScene,
sceneAnimations,
gestures,
style,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the tabs / spaces are out of whack here.

renderScene: this._renderRoute,
};

Expand Down