mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-08-15 18:45:06 +00:00
[fix] Patch internal sources of deprecation warnings
This commit is contained in:
@@ -50,7 +50,7 @@ The `useLocaleContext` API can be used for fine-grained control of layout, e.g.,
|
||||
const { direction, locale } = useLocaleContext();
|
||||
|
||||
const isRTL = direction === 'rtl';
|
||||
const style = { transform: [{ scaleX: isRTL ? -1 : 1 }] };
|
||||
const style = { scaleX: isRTL ? -1 : 1 };
|
||||
|
||||
<Image source={'forward.svg'} style={style} />
|
||||
<Image source={isRTL ? 'back.svg' : 'forward.svg'} />
|
||||
|
||||
Reference in New Issue
Block a user