digitalfabrik/integreat-app

View on GitHub
native/src/testing/I18nManagerMock.ts

Summary

Maintainability
A
0 mins
Test Coverage
F
50%
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