Provide RTL support in NavigationCardStack

Summary: Provide RTL support in NavigationCardStack

Reviewed By: fkgozali

Differential Revision: D3740172

fbshipit-source-id: 69466d24e148d0d81cb9f21c55f545abda46ac35
This commit is contained in:
Mengjue Wang
2016-08-19 08:29:42 -07:00
committed by Facebook Github Bot 3
parent 959c8b170e
commit fc864a22bd
4 changed files with 22 additions and 5 deletions

View File

@@ -27,6 +27,7 @@ const React = require('react');
const ReactNative = require('react-native');
const {
I18nManager,
Image,
Platform,
StyleSheet,
@@ -58,7 +59,8 @@ const styles = StyleSheet.create({
height: 24,
width: 24,
margin: Platform.OS === 'ios' ? 10 : 16,
resizeMode: 'contain'
resizeMode: 'contain',
transform: [{scaleX: I18nManager.isRTL ? -1 : 1}],
}
});