Merge pull request #2130 from ecency/sa/rtl/boost-page-rtl-fix

boost page rtl fix
This commit is contained in:
Feruz M 2022-01-07 08:05:28 +02:00 committed by GitHub
commit 44200550b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
import EStyleSheet from 'react-native-extended-stylesheet'; import EStyleSheet from 'react-native-extended-stylesheet';
import { isRTL } from '../../utils/I18nUtils';
export default EStyleSheet.create({ export default EStyleSheet.create({
container: { container: {
@ -54,6 +55,7 @@ export default EStyleSheet.create({
autocompleteLabelText: { autocompleteLabelText: {
color: '$primaryBlack', color: '$primaryBlack',
fontWeight: '600', fontWeight: '600',
textAlign: 'left',
}, },
autocompleteListContainer: { autocompleteListContainer: {
backgroundColor: '$primaryWhiteLightBackground', backgroundColor: '$primaryWhiteLightBackground',
@ -146,7 +148,7 @@ export default EStyleSheet.create({
}, },
total: { total: {
marginVertical: 15, marginVertical: 15,
flexDirection: 'row', flexDirection: isRTL() ? 'row-reverse' : 'row',
flex: 1, flex: 1,
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',