This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useEffect, useState } from 'react'; | |
| import { Platform, Alert, AppState, AppStateStatus, Linking } from 'react-native'; | |
| import { check, PERMISSIONS, RESULTS, request } from 'react-native-permissions'; | |
| import useTranslation from './useTranslation'; | |
| interface IPhotoLibraryRequestState { | |
| isRequesting: boolean; | |
| resolve: (val: boolean) => void; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Import Dev Configs | |
| import './src/config'; | |
| import React from 'react' | |
| import { Button } from './design'; | |
| /** | |
| * @author Sayuri Mizuguchi | |
| * Import, Initialize and Wrap | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { NativeModules, Platform } from 'react-native'; | |
| /** | |
| * use NativeModules to get devide languages | |
| * both iOS and Android, default format is language_Country e.g en_US | |
| * @return {string} language | |
| */ | |
| const deviceLanguage = Platform.OS === 'ios' | |
| ? NativeModules.SettingsManager.settings.AppleLocale | |
| : NativeModules.I18nManager.localeIdentifier; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { Text, View, StyleSheet } from 'react-native'; | |
| import { useTranslation } from 'react-i18next'; | |
| type Props = { | |
| keyText: String, | |
| }; | |
| export const TextComponent = ({ keyText, ...rest }: Props) => { | |
| const { t } = useTranslation(); |