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:
Janic Duplessis
2019-10-23 17:01:50 -04:00
committed by Krzysztof Magiera
parent 79e664f11d
commit 09c71a45a2

View File

@@ -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;
}