Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native init doesnt seem to be using the latest template files #610

Closed
Darkle opened this issue Aug 3, 2019 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@Darkle
Copy link

Darkle commented Aug 3, 2019

Environment

System:
OS: Linux 4.14 Debian GNU/Linux 9 (stretch) 9 (stretch)
CPU: (1) x64 Intel(R) Xeon(R) CPU @ 2.20GHz
Memory: 274.50 MB / 1.65 GB
Shell: 4.4.12 - /bin/bash
Binaries:
Node: 10.14.2 - /usr/local/nvm/versions/node/v10.14.2/bin/node
npm: 6.4.1 - /usr/local/nvm/versions/node/v10.14.2/bin/npm
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.4 => 0.60.4
npmGlobalPackages:
react-native-cli: 2.0.1

Description

react-native init seems to be using old versions of some (all?) of the template files.

Reproducible Demo

  1. Go to https://console.cloud.google.com/cloudshell/editor?pli=1&shellonly=true and create a shell.
  2. Run npm i -g react-native-cli
  3. Run react-native init TestApp
  4. Run cat ./TestApp/.flowconfig
  5. The output of running cat is: https://gist.github.com/Darkle/b70d905f34ec18908b72949c531f6e41 but the latest version of that file looks like this: https://github.com/facebook/react-native/blob/master/template/_flowconfig

Possibly related: #84

@Darkle Darkle added the bug Something isn't working label Aug 3, 2019
@thymikee
Copy link
Member

thymikee commented Aug 4, 2019

RN master branch is not published. init uses latest npm published tag, which is 0.60.4 at the moment. See how you can use local RN version as a template here: https://github.com/react-native-community/cli/blob/master/CONTRIBUTING.md#running-cli-with-react-native-from-the-source

@thymikee thymikee closed this as completed Aug 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants