@gocodingnow/rn-tamagui-boilerplate
Version:
React Native + Tamagui Boilerplate
17 lines (15 loc) • 402 B
TypeScript
// import the original type declarations
import 'react-i18next';
// import all namespaces (for the default language, only)
import en from '@i18n/translations/en.json';
declare module 'react-i18next' {
// and extend them!
interface CustomTypeOptions {
// custom namespace type if you changed it
defaultNS: '';
// custom resources type
resources: {
en: typeof en;
};
}
}