Fix Popover problem for RTL 1/n

Summary: Change modal.js to support RTL

Reviewed By: javache

Differential Revision: D3580776

fbshipit-source-id: e9ef3f340f52e38fd905dce6d14a74d3bd7b7982
This commit is contained in:
Mengjue Wang 2016-07-19 10:37:08 -07:00 коммит произвёл Facebook Github Bot 2
Родитель 6d1277065d
Коммит a527ef2032
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -11,6 +11,7 @@
*/
'use strict';
const I18nManager = require('I18nManager');
const Platform = require('Platform');
const PropTypes = require('react/lib/ReactPropTypes');
const React = require('React');
@ -157,13 +158,14 @@ class Modal extends React.Component {
}
}
const side = I18nManager.isRTL ? 'right' : 'left';
const styles = StyleSheet.create({
modal: {
position: 'absolute',
},
container: {
position: 'absolute',
left: 0,
[side] : 0,
top: 0,
}
});