Export screensEnabled method to test if screens support is switched ON

This commit is contained in:
Krzysztof Magiera
2018-09-17 12:09:50 +02:00
parent 310847e02f
commit 14e1334505

View File

@@ -18,6 +18,10 @@ export function useScreens(shouldUseScreens = true) {
}
}
export function screensEnabled() {
return USE_SCREENS;
}
const NativeScreen = Animated.createAnimatedComponent(
requireNativeComponent('RNSScreen', null)
);