Skip to content

Commit

Permalink
style: fixed style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
IjzerenHein committed Aug 30, 2019
1 parent 56b11d3 commit 2c591c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 6 additions & 2 deletions src/createSharedElementScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ type PropsType = {
};

function getActiveRouteState(route: any): any {
if (!route.routes || route.routes.length === 0 || route.index >= route.routes.length) {
return route;
if (
!route.routes ||
route.routes.length === 0 ||
route.index >= route.routes.length
) {
return route;
} else {
return getActiveRouteState(route.routes[route.index]);
}
Expand Down
5 changes: 1 addition & 4 deletions src/createSharedElementStackNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ function createSharedElementEnabledNavigator(
typeof routeConfig === 'object' && routeConfig.screen
? routeConfig.screen
: routeConfig;
const wrappedComponent = createSharedElementScene(
component,
rendererData
);
const wrappedComponent = createSharedElementScene(component, rendererData);
if (component === routeConfig) {
wrappedRouteConfigs[key] = wrappedComponent;
} else {
Expand Down

0 comments on commit 2c591c5

Please sign in to comment.