Skip to content
/ RNTemplate Public template

React Native + Typescript for my own purposes.

License

Notifications You must be signed in to change notification settings

aimawari/RNTemplate

Repository files navigation

RNTemplate : React Native Template

React Native latest stable version(0.64.1) with plugins

Installation

requires Node.js and yarn 1 to install.

$ cd rntemplate
$ yarn
$ npx pod-install ios

Change App Name

  • Update name and displayName in app.json to your new app name
  • Run this shell script.
  • Note*: Please run yarn install before use this code
	$ cd scripts
	$ ./change_app_name.sh

Fix react-native-vector-icons problem

If there has any problem about auto linking react-native-vector-icons, Fix here

Fix Android debug.keystore problem

If there has any problem about debug.keystore on android devices, you need to dowload debug.keystore to android/app/

Development

For android

$ npx react-native run-android

For ios

$ npx react-native run-ios

Add font to project

Create file react-native.config.js at root

module.exports = {
  assets: ['./src/assets/fonts/'], // this is font path
};

then

$ npx react-native link

If has any problem with react-native-vector-icons on ios

open RNTemplate.xcworkspace and go to Build Phases

on Copy Bundle Resources, remove everythings that related to react-native-vector-icons