Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Installing nativebase breaks clean install react-native project #931

@jeremyrempel

Description

@jeremyrempel

react-native-cli: 2.0.1
react-native: 0.45.1
node version: v8.0.0
OS: OSX 10.12.5

Steps to reproduce:
0. Follow setup instructions at : https://docs.nativebase.io/docs/GetStarted.html

  1. After react-native init, validate with react-native run-ios, verify the welcome app is viewable
  2. Run : npm install native-base --save, no errors observed
  3. Run react-native link results in following error:
    Command link unrecognized. Make sure that you have run npm install and that you are inside a react-native project.
  4. Run react-native run-ios results in following error
    jrempel@Jeremys-MBP ~/AwesomeNativeBase> react-native run-ios
    Command run-ios unrecognized. Make sure that you have run npm install and that you are inside a react-native project.

Output from: npm install native-base --save
jrempel@Jeremys-MBP ~/AwesomeNativeBase> npm install native-base --save
npm WARN gentlyRm not removing /Users/jrempel/AwesomeNativeBase/node_modules/.bin/jest as it wasn't installed by /Users/jrempel/AwesomeNativeBase/node_modules/jest-cli

[email protected] postinstall /Users/jrempel/AwesomeNativeBase/node_modules/native-base
node addEjectScript.js

┌────────────────────────────────────────────────────────────────────────────────────────────┐
│ NativeBase 2.0 has been succesfully installed! │
│ Run node node_modules/native-base/ejectTheme.js to copy over theme config and variables. │
│ Head over to the docs for detailed information on how to make changes to the theme. │
└────────────────────────────────────────────────────────────────────────────────────────────┘
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of react-native@>=0.43.0 but none was installed.
npm WARN [email protected] requires a peer of react@>=16.0.0-alpha.3 but none was installed.
npm WARN [email protected] requires a peer of react-native@>=0.43.0 but none was installed.
npm WARN [email protected] requires a peer of react@>=16.0.0-alpha.3 but none was installed.
npm WARN @shoutem/[email protected] requires a peer of react@^15.0.0 but none was installed.
npm WARN @shoutem/[email protected] requires a peer of react-native@>=0.28.0 but none was installed.

  • [email protected]
    added 19 packages, removed 568 packages and updated 73 packages in 16.091s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions