Skip to content

React Native with Typescript Transformer Boilerplate for hobby projects

Notifications You must be signed in to change notification settings

Babazon/tsboilerplate

Repository files navigation

Build status

Install node modules and pods

$ yarn $ cd ios && pod install

Rename the app

$ yarn run react-native-rename <your app name here>

Start Metro

$ yarn start

Build the app

$ yarn ios $ yarn android

Alternatively, install VSCode extension "React Native Tools" and add the followling launch configuration items to your VSCode launch.json. This way you can select "Debug IOS/Android" in your VSCode debug menu

"configurations": [
  {
      "name": "Debug Android",
      "program": "${workspaceRoot}/.vscode/launchReactNative.js",
      "type": "reactnative",
      "request": "launch",
      "platform": "android",
      "sourceMaps": true,
      "outDir": "${workspaceRoot}/.vscode/.react"
    },
    {
      "name": "Debug iOS",
      "cwd": "${workspaceFolder}",
      "type": "reactnative",
      "request": "launch",
      "platform": "ios",
      "sourceMaps": true,
      "outDir": "${workspaceRoot}/.vscode/.react"
    }
]