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"; | |
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"/> |
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 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 /> | |
); |
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
https://github.com/flutter/flutter/issues/14020#issuecomment-380178542 |
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
(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(); |
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
src | |
| | |
|--components | |
|----Avatar | |
|------index.tsx | |
|----Button | |
|------index.tsx | |
|----index.ts | |
| | |
|--hooks |
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
export {default as Avatar} from './Avatar'; | |
export {default as Button} from './Button'; |
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
"baseUrl": ".", | |
"paths": { | |
"*": ["src/*"], | |
"@components": ["src/components/index"], | |
"@hooks": ["src/hooks/index"], | |
}, |
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
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', |
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 from 'react'; | |
import { | |
View, | |
} from 'react-native'; | |
import {useRemoteData} from '@hooks'; | |
import {Button} from '@components'; | |
const Home: React.FC = () => { | |
return ( | |
<View > |
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
src | |
| | |
|--components | |
|----Avatar | |
|------index.tsx | |
|----Button | |
|------index.tsx | |
| | |
|--hooks | |
|----useFetch.ts |