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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="primary_dark">#000000</color> | |
</resources> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@drawable/launch_screen" | |
android:orientation="vertical"> | |
</LinearLayout> |
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 * as React from "react" | |
import { View, Text } from "react-native" | |
import * as env from "../../environment-variables" | |
export class ComponentTest extends React.Component<{}, {}> { | |
render() { | |
return ( | |
<View> | |
<Text> |
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
// | |
// Load environment variables in. | |
// | |
// IMPORTANT: | |
// | |
// 1. These might be null, so fallback to sane defaults accordingly where you | |
// make use of these. | |
// | |
// 2. You must use this syntax: process.env.NAME_OF_ENV_VAR. No funny stuff | |
// or the babel plugin won't work. |
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
... | |
const TEXT: TextStyle = { | |
color: "#373737", | |
fontFamily: "Montserrat-Bold", | |
} | |
... | |
render() { | |
return ( | |
... |
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 * as React from "react" | |
import { View, TextInput, TouchableOpacity } from "react-native" | |
import * as validate from "../../utils/validate" | |
export interface Props extends NavigationScreenProps<{}> {} | |
export interface State { | |
form: { | |
textInput: string; |
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 * as React from "react" | |
import { View, Image, ViewStyle, TextStyle, ImageStyle, SafeAreaView } from "react-native" | |
import { NavigationScreenProps } from "react-navigation" | |
import { Text } from "../../components/text" | |
import { Button } from "../../components/button" | |
import { Screen } from "../../components/screen" | |
import { Wallpaper } from "../../components/wallpaper" | |
import { Header } from "../../components/header" | |
import { color, spacing } from "../../theme" | |
import { bowserLogo } from "./" |
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 * as React from "react" | |
import { View } from "react-native" | |
import * as keychain from "../../utils/keychain" | |
export class FirstExampleScreen extends React.Component<{}, {}> { | |
componentWillMount = async () => { | |
// Sauvegarde des logs | |
await keychain.save('[email protected]', '123456'); | |
await keychain.save('[email protected]', '12345', 'server1'); | |
await keychain.save('[email protected]', '123457', 'server2'); |
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 * as React from "react" | |
import { View, Text } from "react-native" | |
import { translate } from "../../i18n/" | |
export class FirstExampleScreen extends React.Component<{}, {}> | |
render() { | |
return ( | |
<View> | |
// JSX... | |
<Text> |
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 * as RNLocalize from "react-native-localize" | |
import i18n from "i18n-js" | |
const en = require("./en") | |
const ja = require("./ja") | |
i18n.fallbacks = true | |
i18n.translations = { en, ja } | |
const fallback = { languageTag: "en", isRTL: false } |