muba-posting 9.0.15 → 9.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commonStyles.js +10 -3
- package/package.json +1 -1
package/commonStyles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StyleSheet, Dimensions, Platform } from 'react-native';
|
|
1
|
+
import { StyleSheet, Dimensions, Platform, I18nManager } from 'react-native';
|
|
2
2
|
import { isRTL } from 'muba-i18n';
|
|
3
3
|
import Constants from 'expo-constants';
|
|
4
4
|
|
|
@@ -509,8 +509,15 @@ export default StyleSheet.create({
|
|
|
509
509
|
borderColor: '#bcbcbc',
|
|
510
510
|
borderWidth: 1,
|
|
511
511
|
borderRadius: 5,
|
|
512
|
-
|
|
513
|
-
|
|
512
|
+
...(I18nManager.isRTL
|
|
513
|
+
? {
|
|
514
|
+
borderTopLeftRadius: 0,
|
|
515
|
+
borderBottomLeftRadius: 0,
|
|
516
|
+
}
|
|
517
|
+
: {
|
|
518
|
+
borderTopRightRadius: 0,
|
|
519
|
+
borderBottomRightRadius: 0,
|
|
520
|
+
}),
|
|
514
521
|
backgroundColor: '#fff'
|
|
515
522
|
},
|
|
516
523
|
|