mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-09 09:13:32 +08:00
Handle case where screensEnabled isn't available (in Snack)
This commit is contained in:
@@ -14,7 +14,7 @@ const FAR_FAR_AWAY = 3000; // this should be big enough to move the whole view o
|
||||
|
||||
export default class ResourceSavingScene extends React.Component<Props> {
|
||||
render() {
|
||||
if (screensEnabled()) {
|
||||
if (screensEnabled && screensEnabled()) {
|
||||
const { isVisible, ...rest } = this.props;
|
||||
return <Screen active={isVisible ? 1 : 0} {...rest} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user