mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Implement gating support for direction-aware API changes
Reviewed By: achen1 Differential Revision: D6045083 fbshipit-source-id: 857a43029ad88d2324ec77145a1e30d92b5e8fae
This commit is contained in:
committed by
Facebook Github Bot
parent
f7888310d4
commit
98547d4bcf
@@ -29,10 +29,16 @@ RCT_EXPORT_METHOD(forceRTL:(BOOL)value)
|
||||
[[RCTI18nUtil sharedInstance] forceRTL:value];
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(makeRTLFlipLeftAndRightStyles:(BOOL)value)
|
||||
{
|
||||
[[RCTI18nUtil sharedInstance] makeRTLFlipLeftAndRightStyles:value];
|
||||
}
|
||||
|
||||
- (NSDictionary *)constantsToExport
|
||||
{
|
||||
return @{
|
||||
@"isRTL": @([[RCTI18nUtil sharedInstance] isRTL])
|
||||
@"isRTL": @([[RCTI18nUtil sharedInstance] isRTL]),
|
||||
@"doesRTLFlipLeftAndRightStyles": @([[RCTI18nUtil sharedInstance] doesRTLFlipLeftAndRightStyles])
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user