Comments (10)
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.
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.
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.
Thank you @eugenemlee that worked for me 👍. I've submitted a PR which updates the README accordingly #65.
from react-native-template-typescript.
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.
@ajaymore use yarn react-native run-android
or create a script in package.json
from react-native-template-typescript.
Something has gone wrong. I can't understand what.@ajaymore use
yarn react-native run-android
or create a script in package.json
from react-native-template-typescript.
See here for the solution.
from react-native-template-typescript.
Thank you @eugenemlee. Putting down all the steps for those who might visit this issue.
- Uninstall Global react-native-cli
npm uninstall -g react-native-cli
- Create The App with Typescript template
npx react-native init MyApp --template react-native-template-typescript
- 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
- Run below command to launch the app in emulator.
yarn react-native run-android
from react-native-template-typescript.
@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)
- How to create typescript related to react native 0.64.0 HOT 1
- Use error report
- React Native 69 will use iOS 12.4 as minimal version but we still recommends es2017 in TS config HOT 3
- can not run npx react-native init MyApp HOT 1
- Custom Path for 0.69+ not working HOT 1
- Typescript displays wrong messages.
- undefined is not a object(evaluating 'o[typeof Symbol === "function"?Symbol.iterator:"@@iterator"]')
- set 'no-unused-vars' prop value 'error' but doesn't work
- There is a Helloworld.xcworkspace file in the ios folder every time I use the typescript template. HOT 3
- The template lack deps `@types/react` HOT 4
- npx react-native init fails with latest typescipt template HOT 2
- How to reinstall all deps when cloning a repo initialized with this project? HOT 1
- Error: Couldn't find the "/template.config.js file inside "react-native" template. HOT 1
- Question HOT 1
- Android and iOS folders are missing while executing the command
- Using with specified version of RN doesn't work HOT 1
- Android app will not run after default init HOT 1
- An error is reported during initialization ? HOT 1
- Support for RN 0.71? HOT 1
- How can I install [email protected]? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-template-typescript.