Merge pull request #2122 from ecency/sa/rtl/post-options-dropdown

fixed alignment in post crad dropdown in RTL
This commit is contained in:
Feruz M 2022-01-05 16:29:22 +02:00 committed by GitHub
commit 8dcea12633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -80,5 +80,6 @@ export default EStyleSheet.create({
rowText: {
fontSize: 10,
color: '$primaryDarkGray',
textAlign: 'left',
},
});

View File

@ -42,7 +42,11 @@ const renderDropdownRow = (
</Text>
</View>
);
const adjustDropdownFrame = (style:any) => {
style.left = 'auto'
style.right = 10
return style
}
const DropdownButtonView = ({
childIconWrapperStyle,
children,
@ -90,6 +94,7 @@ const DropdownButtonView = ({
dropdownRowWrapper,
)
}
adjustFrame={(style: any) => adjustDropdownFrame(style) }
>
{isHasChildIcon && !isLoading ? (
<View style={[styles.iconWrapper, childIconWrapperStyle && childIconWrapperStyle]}>