Pular para o conteúdo principal

Postagens

Mostrando postagens de agosto, 2022

Creating React-Native Project using Expo and TypeScript

 expo init nome_projeto select Bare workflow  minimal bare and minimal, just the essentials to get you started create the file typescript.json  execute in the folder of project the command expo start. Add pathing Map install yarn add babel-plugin-module-resolver -D Edit the file babel.config.js module . exports = function ( api ) {   api . cache ( true );   return {     presets : [ 'babel-preset-expo' ],     "plugins" : [       [         "module-resolver" ,         {           "root" : [ "./" ],           "alias" : {             "@components" : "./src/components" ,             "@screens" : "./src/screens" ,             "@stores" : "./src/stores" ,             "@utils" : "./src/utils" ,             "@services" : "./src/services" ,             "@assets" : "./assets" ,             "@constants"