Skip to content

react-native link works incorrect #18333

Closed

Description

@itoys

After merging #17961 react-native link command works wrong.

Before, params field was used only for android and waiting for user response, now it uses for all platforms without waiting user input.

Seem like that main reason it's that you doesn't work with promises and just use Object.keys().forEach(link)

Environment

Environment:
OS: macOS High Sierra 10.13.3
Node: 8.9.1
Yarn: 0.15.1
npm: 5.6.0
Watchman: 4.7.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: 16.3.0-alpha.1 => 16.3.0-alpha.1
react-native: 0.54.1 => 0.54.1

Expected Behavior

  1. Waiting user interaction while params polling
  2. If you would like to add params fo all platforms, please add platform field for filter purpose

Actual Behavior

I've got duplicate questions in terminal, "postinstall" script runs before user set up params

Steps to Reproduce

$ react-native init AwesomeProject
$ cd AwesomeProject
$ npm i react-native-code-push --save
$ react-native link react-native-code-push

So we'll get mess in terminal

Activity

  1. added
    Impact: Regression
    on Mar 13, 2018
  2. added a commit that references this issue on Mar 22, 2018
    863a49f
  3. removed
    Platform: macOS
    on Mar 29, 2018
  4. locked as resolved and limited conversation to collaborators on Mar 20, 2019
  5. added
    Resolution: Locked
    on Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Impact: RegressionResolution: Locked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions