diff --git a/src/Libraries/ReactNative/I18nManager.js b/src/Libraries/ReactNative/I18nManager.js new file mode 100644 index 0000000..12428e3 --- /dev/null +++ b/src/Libraries/ReactNative/I18nManager.js @@ -0,0 +1,27 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow + * @format + */ + +type I18nManagerStatus = { + isRTL: boolean, + doLeftAndRightSwapInRTL: boolean, + allowRTL: (allowRTL: boolean) => {}, + forceRTL: (forceRTL: boolean) => {}, + swapLeftAndRightInRTL: (flipStyles: boolean) => {}, +}; + +const I18nManager: I18nManagerStatus = { + isRTL: false, + doLeftAndRightSwapInRTL: true, + allowRTL: () => {}, + forceRTL: () => {}, + swapLeftAndRightInRTL: () => {}, +}; + +module.exports = I18nManager; diff --git a/src/components/StatusBar.js b/src/components/StatusBar.js index 07ca75f..1c6cdd7 100644 --- a/src/components/StatusBar.js +++ b/src/components/StatusBar.js @@ -17,7 +17,7 @@ const StatusBar = createReactClass({ displayName: 'StatusBar', propTypes: { animated: PropTypes.bool, - barStyle: PropTypes.oneOf(['default', 'light-content']), + barStyle: PropTypes.oneOf(['default', 'light-content', 'dark-content']), backgroundColor: ColorPropType, hidden: PropTypes.bool, networkActivityIndicatorVisible: PropTypes.bool, diff --git a/src/react-native.js b/src/react-native.js index 4bd8ebc..78329a1 100644 --- a/src/react-native.js +++ b/src/react-native.js @@ -73,6 +73,7 @@ const ReactNative = { Dimensions: require('./api/Dimensions'), Easing: require('./api/Animated/Easing'), findNodeHandle: require('./api/findNodeHandle'), + I18nManager: require('./Libraries/ReactNative/I18nManager'), ImagePickerIOS: require('./api/ImagePickerIOS'), IntentAndroid: require('./api/IntentAndroid'), InteractionManager: require('./api/InteractionManager'),