Code Monkey home page Code Monkey logo

Comments (10)

eugenemlee avatar eugenemlee commented on May 12, 2024 8

IMPORTANT STEP: Remove your globally installed react-native-cli:
npm uninstall -g react-native-cli

Then install using npx:
npx react-native init app --template react-native-template-typescript

from react-native-template-typescript.

schachris avatar schachris commented on May 12, 2024

I got the same error... a week ago it was working correctly
probably a bug with the new 6.1.0 version?

from react-native-template-typescript.

kosperera avatar kosperera commented on May 12, 2024

I get the same folder structure with new template.config.js file and it's confusing. Wonder which is the correct working folder. Can someone please shed some light?

from react-native-template-typescript.

mrbrentkelly avatar mrbrentkelly commented on May 12, 2024

Thank you @eugenemlee that worked for me 👍. I've submitted a PR which updates the README accordingly #65.

from react-native-template-typescript.

ajaymore avatar ajaymore commented on May 12, 2024

I was able to create a new project as described, it works pretty well. How do we run react-native run-android after doing npm uninstall -g react-native-cli

from react-native-template-typescript.

eugenemlee avatar eugenemlee commented on May 12, 2024

@ajaymore use yarn react-native run-android or create a script in package.json

from react-native-template-typescript.

ajaymore avatar ajaymore commented on May 12, 2024

@ajaymore use yarn react-native run-android or create a script in package.json

Screenshot 2019-09-13 at 5 57 48 PM

Something has gone wrong. I can't understand what.

from react-native-template-typescript.

eugenemlee avatar eugenemlee commented on May 12, 2024

See here for the solution.

from react-native-template-typescript.

ajaymore avatar ajaymore commented on May 12, 2024

Thank you @eugenemlee. Putting down all the steps for those who might visit this issue.

  1. Uninstall Global react-native-cli
npm uninstall -g react-native-cli
  1. Create The App with Typescript template
npx react-native init MyApp --template react-native-template-typescript
  1. Generate debug.keystore in android/app/ directory
keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
  1. Run below command to launch the app in emulator.
yarn react-native run-android

from react-native-template-typescript.

ivanbtrujillo avatar ivanbtrujillo commented on May 12, 2024

@ajaymore use yarn react-native run-android or create a script in package.json

With npx:

npx react-native run-android 

from react-native-template-typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.