Skip to content

Commit

Permalink
Merge pull request #55 from Root-App/stephenh-master
Browse files Browse the repository at this point in the history
Update pull request 43 to fix linter error.
  • Loading branch information
bob-carson authored Aug 14, 2018
2 parents f68eccd + db598da commit 97381af
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
27 changes: 27 additions & 0 deletions src/Libraries/ReactNative/I18nManager.js
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 1 addition & 1 deletion src/components/StatusBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 97381af

Please sign in to comment.