Skip to content

Instantly share code, notes, and snippets.

View enzzoperez's full-sized avatar
🐙
Stay Alive ||-//

random17 enzzoperez

🐙
Stay Alive ||-//
View GitHub Profile
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.
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.")
})
subprojects { subproject ->
afterEvaluate {
if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
}
}
}
}
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-->)
URL_BASE=https://myawesomeapi.com/api
API_KEY_MAPS=yuwy17y2u32y78hye827yey8328ye23ye92y3e
API_KEY_FACEBOOK=838838he8e38h38e3hehh8e8
URL_BASE =localhost:3001
API_KEY_MAPS =1234567890
API_KEY_FACEBOOK =QWERTYUIOP
//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-->)
android create avd -n emulator_name -k "system-images;android-24;default;x86"
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();
});
};