mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-27 22:56:07 +08:00
Remove es exports from screens.native.js (#193)
Follow up of 4749405d64, let's remove the es exports from this file to avoid confusion. It uses `module.export`.
This commit is contained in:
committed by
Krzysztof Magiera
parent
79e664f11d
commit
09c71a45a2
@@ -17,7 +17,7 @@ const getViewManagerConfigCompat = name =>
|
||||
? UIManager.getViewManagerConfig(name)
|
||||
: UIManager[name];
|
||||
|
||||
export function enableScreens(shouldEnableScreens = true) {
|
||||
function enableScreens(shouldEnableScreens = true) {
|
||||
ENABLE_SCREENS = shouldEnableScreens;
|
||||
if (ENABLE_SCREENS && !getViewManagerConfigCompat('RNSScreen')) {
|
||||
console.error(
|
||||
@@ -27,12 +27,12 @@ export function enableScreens(shouldEnableScreens = true) {
|
||||
}
|
||||
|
||||
// we should remove this at some point
|
||||
export function useScreens(shouldUseScreens = true) {
|
||||
function useScreens(shouldUseScreens = true) {
|
||||
console.warn('Method `useScreens` is deprecated, please use `enableScreens`');
|
||||
enableScreens(shouldUseScreens);
|
||||
}
|
||||
|
||||
export function screensEnabled() {
|
||||
function screensEnabled() {
|
||||
return ENABLE_SCREENS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user