This file contains 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
/* eslint-disable */ | |
import fr from 'config/locales/fr'; | |
import en from 'config/locales/en'; | |
import { exec } from 'child_process'; | |
describe('i18n', () => { | |
test('Translations keys are the same for every language', () => { | |
const translationKeysEn = iterate(en, '', []); | |
const translationKeysFr = iterate(fr, '', []); |
This file contains 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
@ReactMethod | |
public void updateInfo(ReadableMap map, Promise promise) { | |
AccountFC accountFC = FidmeCoupons.with(getActivity()).getAccountFC(); | |
accountFC.setFirstName(map.getString("firstName")); | |
accountFC.setLastName(map.getString("lastName")); | |
FidmeCoupons.with(getActivity()).updateAccountFCInfo(accountFC, new UpdateAccountFCListener() { | |
@Override | |
public void onUpdateAccountFCSucceed() { | |
promise.resolve(); | |
} |
This file contains 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 { | |
Dimensions, Image, Text, TouchableOpacity, View, LayoutAnimation } from 'react-native'; | |
import DocumentScanner from 'react-native-document-scanner'; | |
import Icon from 'react-native-vector-icons/Ionicons'; | |
import React, { Component } from 'react'; | |
import CustomCrop from 'react-native-custom-crop'; | |
import { I18n } from '../utils'; | |
import FloatingButton from '../shared/FloatingButton'; |