native/src/testing/I18nManagerMock.ts
import { I18nManager as I18nManagerType } from 'react-native'
const isRTL = false
const doLeftAndRightSwapInRTL = false
export const I18nManager = {
isRTL,
allowRTL: (_unusedAllowRTL: boolean) => {
throw Error('Not yet implemented.')
},
forceRTL: (forceRTL: boolean) => {
I18nManager.isRTL = forceRTL
return I18nManager
},
getConstants: () => ({
isRTL,
doLeftAndRightSwapInRTL,
}),
swapLeftAndRightInRTL: (_unusedSwapLeftAndRight: boolean) => {
throw Error('Not yet implemented.')
},
doLeftAndRightSwapInRTL,
} as I18nManagerType