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, {Component} from "react"; | |
import {View, Text} from "react-native"; | |
//Importamos los componentes del package | |
import Svg, {G, Path} from "react-native-svg"; | |
const LogoRiver = (props) => | |
export default LogoRiver; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
getCatalogFromAPI(lastUpdate) { | |
return new Promise((resolve, reject)=>{ | |
fetch(URL_API). | |
then(res=>{ | |
if (res && res.status == 200){ | |
resolve(res.json()) | |
} | |
else | |
reject("Hubo un error al recuperar datos.") | |
}) |
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
subprojects { subproject -> | |
afterEvaluate { | |
if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) { | |
android { | |
compileSdkVersion rootProject.ext.compileSdkVersion | |
buildToolsVersion rootProject.ext.buildToolsVersion | |
} | |
} | |
} | |
} |
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 Config from 'react-native-config' | |
const miFuncion = () => { | |
fetch(Config.URL_BASE, { | |
body: { | |
maps_key: Config.API_KEY_MAPS, | |
fb_key: Config.API_KEY_FACEBOOK | |
} | |
}) | |
.then(<--algo-->) |
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
URL_BASE=https://myawesomeapi.com/api | |
API_KEY_MAPS=yuwy17y2u32y78hye827yey8328ye23ye92y3e | |
API_KEY_FACEBOOK=838838he8e38h38e3hehh8e8 |
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
URL_BASE =localhost:3001 | |
API_KEY_MAPS =1234567890 | |
API_KEY_FACEBOOK =QWERTYUIOP |
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
//Url para desarrollo, COMENTAR la siguiente linea en produccion | |
const URL_BASE: "localhost:3000" | |
//Url para produccion, DESCOMENTAR la siguiente linea en produccion | |
//const URL_BASE: 'https://myawesomeapi.com/api/ | |
const miFuncion = () => { | |
fetch(URL_BASE) | |
.then(<--algo-->) | |
.catch(<--algo-->) |
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
android create avd -n emulator_name -k "system-images;android-24;default;x86" |
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
function disableTap() { | |
var container = document.getElementsByClassName('pac-container'); | |
angular.element(container).attr('data-tap-disabled', 'true'); | |
var backdrop = document.getElementsByClassName('backdrop'); | |
angular.element(backdrop).attr('data-tap-disabled', 'true'); | |
angular.element(container).on("click", function() { | |
document.getElementById('pac-input').blur(); | |
}); | |
}; |
NewerOlder