Skip to content

Instantly share code, notes, and snippets.

@diego3g
Created March 9, 2018 01:08
Show Gist options
  • Save diego3g/a9f52a12a8f968fc07d1a30fc0bff52a to your computer and use it in GitHub Desktop.
Save diego3g/a9f52a12a8f968fc07d1a30fc0bff52a to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import { View, Text, StyleSheet, ScrollView } from 'react-native';
import 'config/ReactotronConfig';
import 'config/DevToolsConfig';
import Post from 'components/Post';
const textos = [
{ },
];
export default class App extends Component{
state = {
posts: [
{
id: 0,
titulo: 'Aprendendo React Native',
autor: "Petterson Amaral Miler",
descricao: "Descrição do post"
},
{
id: 1,
titulo: 'Aprendendo React Native',
autor: "Petterson Amaral Miler",
descricao: "Descrição do post"
},
{
id: 2,
titulo: 'Aprendendo React Native',
autor: "Petterson Amaral Miler",
descricao: "Descrição do post"
},
]
};
render() {
return (
<View style={styles.contView}>
<View style={styles.cabecaView}>
<Text style={styles.cabeca}>GoNative App</Text>
</View>
<ScrollView style={styles.container}>
{this.state.posts.map(post => (
<Post key={post.id} titulo={post.titulo} autor={post.autor} descricao={post.descricao}/>
))}
</ScrollView>
</View>
);
}
}
const styles = StyleSheet.create({
contView: {
flex: 1,
backgroundColor: '#FFFFFF',
},
cabecaView: {
margin: 20,
},
cabeca: {
color: '#333333',
fontSize: 30,
fontWeight: 'bold',
textAlign: 'center',
},
container: {
backgroundColor: '#ee7777',
},
});
@Kyol17
Copy link

Kyol17 commented Aug 12, 2023

&node:internal/modules/cjs/loader:1327
throw err;
^
OSyntaxError: /home/node/config.json: Unexpected string in JSON at position 134
at parse ()
K at Module._extensions..json (node:internal/modules/cjs/loader:1324:39)

at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
A at Module.require (node:internal/modules/cjs/loader:1143:19)
: at require (node:internal/modules/cjs/helpers:121:18)
5 at Object. (/home/node/index.js:3:16)
B at Module._compile (node:internal/modules/cjs/loader:1256:14)
I at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)

@4i4u4i4u7458u5u5u574874u4

Oi

@4i4u4i4u7458u5u5u574874u4

Mzmx

@Jvjv09
Copy link

Jvjv09 commented Nov 18, 2024

𝐴𝑛𝑔𝑒𝑙𝑙𝑒 𝑠𝑡𝑜𝑟𝑒 . . .

𝑁𝑜𝑠𝑠𝑎 𝑙𝑜𝑗𝑎 𝑒𝑠𝑡𝑎 𝑞𝑢𝑎𝑠𝑒 𝑏𝑎𝑡𝑒𝑛𝑑𝑜 𝑎 𝑚𝑒𝑡𝑎 𝑑𝑒 400 𝑝𝑒𝑠𝑠𝑜𝑎𝑠! 𝑉𝑒𝑛ℎ𝑎 𝑓𝑎𝑧𝑒𝑟 𝑝𝑎𝑟𝑡𝑒 𝑑𝑎 𝑛𝑜𝑠𝑠𝑎 𝑓𝑎𝑚𝑖𝑙𝑖𝑎!

𝐂𝐨𝐢𝐬𝐚𝐬 𝐚 𝐥𝐡𝐞 𝐨𝐟𝐞𝐫𝐞𝐜𝐞𝐫...

1 𝑅𝑜𝑏𝑢𝑥(𝑒𝑚 𝑏𝑟𝑒𝑣𝑒..) 2 𝐺𝑎𝑚𝑒𝑝𝑎𝑠𝑠
3 𝐶𝑜𝑚𝑝𝑟𝑎𝑟 𝑠𝑒𝑔𝑢𝑖𝑑𝑜𝑟𝑒𝑠(𝑡𝑘𝑘) 4 𝑀𝑒𝑡𝑜𝑑𝑜 𝑟𝑜𝑏𝑢𝑥
5 𝑀𝑒𝑡𝑜𝑑𝑜 𝑐𝑐 6 𝑁𝑒𝑡𝑓𝑙𝑖𝑥
7 𝐶𝑜𝑛𝑡𝑎𝑠 𝑛𝑖𝑙𝑡𝑟𝑎𝑑𝑎𝑠 8 𝑁𝑖𝑙𝑡𝑟𝑜 𝑚𝑒𝑛𝑠𝑎𝑙 𝑒 𝑡𝑟𝑖𝑚𝑒𝑛𝑠𝑎𝑙
𝐓𝐮𝐝𝐨 𝐢𝐬𝐬𝐨, 𝐬𝐮𝐩𝐞𝐫 𝐛𝐚𝐫𝐚𝐭𝐨!!

𝐸𝑛𝑡𝑟𝑒 𝑑𝑖𝑣𝑒𝑟𝑠𝑜𝑠 𝑜𝑢𝑡𝑟𝑜𝑠 𝑝𝑎𝑟𝑎 𝑠𝑎𝑏𝑒𝑟 𝑚𝑎𝑖𝑠 𝑒𝑛𝑡𝑟𝑒 𝑒𝑚 𝑛𝑜𝑠𝑠𝑎 𝑐𝑜𝑚𝑢𝑛𝑖𝑑𝑎𝑑𝑒 𝑒 𝑠𝑒 𝑡𝑜𝑟𝑛𝑒 𝑢𝑚 𝐴𝑛𝑔𝑒𝑙𝑙𝑒!🔥
https://media1.giphy.com/media/4OV1bLOIWwIXRxpXlN/giphy.gif?cid=6c09b95216tde7rfp6517aywmp0cn575u903sl24unbrhx2y&ep=v1_internal_gif_by_id&rid=giphy.gif&ct=g

https://discord.gg/DGNarkMyj5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment