Skip to content

Instantly share code, notes, and snippets.

Last active July 21, 2020 07:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
i18next App.tsx file
import React from 'react';
import {SafeAreaView, StyleSheet, View, Text, StatusBar} from 'react-native';
// Localization.ts code can be found here:
import './localization';
import {useTranslation} from 'react-i18next';
declare const global: {HermesInternal: null | {}};
const App = () => {
const {t} = useTranslation();
return (
<StatusBar barStyle="dark-content" />
<SafeAreaView style={styles.main}>
<Text>{t('Welcome to React')}</Text>
const styles = StyleSheet.create({
main: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment