Skip to content

Commit 42e364f

Browse files
author
aksonov
committed
Fix screen-less scenes for Lightbox navigator (RN0.50)
1 parent a2eb56c commit 42e364f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/navigationStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ _this2.states[key].path=path;
469469
}
470470

471471
var screen={
472-
screen:createWrapper(component,wrapBy,_this2)||_this2.processScene(_child,commonProps,clones)||lightbox&&_reactNative.View,
472+
screen:createWrapper(component,wrapBy,_this2)||_this2.processScene(_child,commonProps,clones)||lightbox&&function(){return null;},
473473
navigationOptions:createNavigationOptions(_extends({},commonProps,{hideNavBar:parentProps.hideNavBar},getProperties(component),_child.props,{init:init,component:component}))};
474474

475475

src/navigationStore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { observable, action } from 'mobx';
33
import * as ActionConst from './ActionConst';
44
import { OnEnter, OnExit, assert } from './Util';
5-
import { View, Image, Animated, Easing, Platform } from 'react-native';
5+
import { Image, Animated, Easing, Platform } from 'react-native';
66
import { TabNavigator, DrawerNavigator, StackNavigator, NavigationActions, TabBarTop, TabBarBottom } from 'react-navigation';
77
import { LeftButton, RightButton, BackButton } from './NavBar';
88
import LightboxNavigator from './LightboxNavigator';
@@ -469,7 +469,7 @@ class NavigationStore {
469469
}
470470
// console.log(`KEY ${key} PATH ${path} DRAWER ${drawer} TABS ${tabs} WRAP ${wrap}`, JSON.stringify(commonProps));
471471
const screen = {
472-
screen: createWrapper(component, wrapBy, this) || this.processScene(child, commonProps, clones) || (lightbox && View),
472+
screen: createWrapper(component, wrapBy, this) || this.processScene(child, commonProps, clones) || (lightbox && (() => null)),
473473
navigationOptions: createNavigationOptions({ ...commonProps, hideNavBar: parentProps.hideNavBar, ...getProperties(component), ...child.props, init, component }),
474474
};
475475

0 commit comments

Comments
 (0)