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";
export const LogoRiver = (props) =>
<Svg width="2500" height="2500" viewBox="0 0 192.756 192.756">
<G fill-rule="evenodd" clip-rule="evenodd">
<Path fill="#fff" d="M0 0h192.756v192.756H0V0z"/>
@enzzoperez
enzzoperez / App.js
Last active November 17, 2018 16:11
import React from 'react'
import {View, Text} from 'react-native'
import {LogoRiver} from './logoRiver'
class App extends React.Component {
render() {
return (
<Text>Este es el logo</Text>
<LogoRiver />
);
https://github.com/flutter/flutter/issues/14020#issuecomment-380178542
(async () => {
const rawResponse = await fetch('https://httpbin.org/post', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({a: 1, b: 'Textual content'})
});
const content = await rawResponse.json();
src
|
|--components
|----Avatar
|------index.tsx
|----Button
|------index.tsx
|----index.ts
|
|--hooks
export {default as Avatar} from './Avatar';
export {default as Button} from './Button';
"baseUrl": ".",
"paths": {
"*": ["src/*"],
"@components": ["src/components/index"],
"@hooks": ["src/hooks/index"],
},
plugins: [
//if you already have other plugin just paste this lines below
[
'module-resolver',
{
root: ['./src'],
extensions: ['.ios.js', '.android.js', '.js', '.ts', '.tsx', '.json'],
alias: {
'@components': './src/components/index',
'@hooks': './src/hooks/index',
import React from 'react';
import {
View,
} from 'react-native';
import {useRemoteData} from '@hooks';
import {Button} from '@components';
const Home: React.FC = () => {
return (
<View >
src
|
|--components
|----Avatar
|------index.tsx
|----Button
|------index.tsx
|
|--hooks
|----useFetch.ts