Set explicit types in I18nManager exports

Summary:
Changelog:
[Internal] - Added explicit types in I18nManager exports

Reviewed By: elicwhite

Differential Revision: D68214193

fbshipit-source-id: 960ef7b9c0171aed983f4db620bb895ccbff6cd2
This commit is contained in:
Dawid Małecki
2025-01-16 02:08:37 -08:00
committed by Facebook GitHub Bot
parent 595d8c7fa1
commit 9a29264ffb
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -56,6 +56,7 @@ module.exports = {
NativeI18nManager.swapLeftAndRightInRTL(flipStyles);
},
isRTL: i18nConstants.isRTL,
doLeftAndRightSwapInRTL: i18nConstants.doLeftAndRightSwapInRTL,
isRTL: i18nConstants.isRTL as I18nManagerConstants['isRTL'],
doLeftAndRightSwapInRTL:
i18nConstants.doLeftAndRightSwapInRTL as I18nManagerConstants['doLeftAndRightSwapInRTL'],
};
@@ -7489,8 +7489,8 @@ exports[`public API should not change unintentionally Libraries/ReactNative/I18n
allowRTL: (shouldAllow: boolean) => void,
forceRTL: (shouldForce: boolean) => void,
swapLeftAndRightInRTL: (flipStyles: boolean) => void,
isRTL: $FlowFixMe,
doLeftAndRightSwapInRTL: $FlowFixMe,
isRTL: I18nManagerConstants[\\"isRTL\\"],
doLeftAndRightSwapInRTL: I18nManagerConstants[\\"doLeftAndRightSwapInRTL\\"],
};
"
`;