Skip to content

Commit

Permalink
fix: get Parse working with async 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetambala committed Oct 27, 2020
1 parent 572849e commit cb7820b
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions modules/i18n/spanish/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"other": "Otro",
"submit": "Entrega",
"fName": "Primer Nombre",
"lName": "Apedillo",
"city": "Cuidad",
"lName": "Apellido",
"city": "Ciudad",
"commName": "Nombre de comunidad",
"notes": "Notas"
},
Expand Down
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"react-native-emoji": "1.8.0",
"react-native-gesture-handler": "1.6.0",
"react-native-localize": "1.3.3",
"react-native-maps": "0.27.1",
"react-native-paper": "3.11.0",
"react-native-safe-area-context": "3.0.7",
"react-native-screens": "2.9.0",
Expand All @@ -72,8 +73,7 @@
"react-redux": "7.2.0",
"redux": "4.0.5",
"redux-actions": "2.6.5",
"yup": "0.29.3",
"react-native-maps": "0.27.1"
"yup": "0.29.3"
},
"devDependencies": {
"@babel/core": "7.10.2",
Expand All @@ -92,4 +92,4 @@
"standard-version-expo": "1.0.3"
},
"private": true
}
}
4 changes: 2 additions & 2 deletions services/aws/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import getEnvVars from '../../environment';
import selectedENV from '../../environment';

const axios = require('axios');

function retrievePuenteAutofillData(parameter) {
const { AWS_LAMBDA_URL } = getEnvVars();
const { AWS_LAMBDA_URL } = selectedENV;
return axios.get(AWS_LAMBDA_URL, {
params: {
bucket_name: 'google-sheets-lambda',
Expand Down
6 changes: 3 additions & 3 deletions services/parse/auth/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Parse } from 'parse/react-native';
import { AsyncStorage } from 'react-native';
import getEnvVars from '../../../environment';
import AsyncStorage from '@react-native-community/async-storage';
import selectedENV from '../../../environment';

function initialize() {
const { parseAppId, parseJavascriptKey, parseServerUrl } = getEnvVars();
const { parseAppId, parseJavascriptKey, parseServerUrl } = selectedENV;

Parse.setAsyncStorage(AsyncStorage);
Parse.initialize(parseAppId, parseJavascriptKey);
Expand Down
4 changes: 2 additions & 2 deletions services/tasky/tasks/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import axios from 'axios';
import getEnvVars from '../../../environment';
import selectedENV from '../../../environment';

function getTasks() {
const { taskyUrlApi } = getEnvVars();
const { taskyUrlApi } = selectedENV;

return axios.get(`${taskyUrlApi}/tasks`)
.then(async (response) => {
Expand Down

0 comments on commit cb7820b

Please sign in to comment.