Show Menu
Cheatography

React Native_ Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Install

npm install -g expo-cli //set of tools

npm install --global yarn //installer

expo init AwesomeProject //Criar Projeto

cd AwesomeProject
npm start # you can also use: expo start //Inicializar projeto
Instalar usando prompt do Node.js

Error

var sharedBlacklist = [
  /node_modules[\/\\]react[\/\\]dist[\/\\].*/,
  /website\/node_modules\/.*/,
  /heapCapture\/bundle\.js/,
  /.\/__tests__\/./
];
Possivel erro. Editar em: \node_­mod­ule­s\m­etr­o-c­onf­ig­\src­\de­fau­lts­\bl­ack­list.js
--Talvez seja necessario fazer toda vez que instalar um pacote
--Down­grade Node.js para 12.9 pode corrigir também.

Tools

Package "­Bab­el"
TypeScript Syntax
Package "­Emm­et"
'ctrl + e" -> <te­xt>­</t­ext>