mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 20:35:19 +08:00
Export screensEnabled method to test if screens support is switched ON
This commit is contained in:
@@ -18,6 +18,10 @@ export function useScreens(shouldUseScreens = true) {
|
||||
}
|
||||
}
|
||||
|
||||
export function screensEnabled() {
|
||||
return USE_SCREENS;
|
||||
}
|
||||
|
||||
const NativeScreen = Animated.createAnimatedComponent(
|
||||
requireNativeComponent('RNSScreen', null)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user