question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RN 0.48.4 was tagged but not released

See original GitHub issue

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment: OS: macOS Sierra 10.12.6 Node: 8.5.0 Yarn: Not Found npm: 5.4.2 Watchman: 4.9.0 Xcode: Xcode 8.3.3 Build version 8E3004b Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed) react: 16.0.0-alpha.12 => 16.0.0-alpha.12 react-native: 0.48.3 => 0.48.3

Steps to Reproduce

  1. Project tests fails because of #15810, and this was fixed in 0.48-stable branch in 355eaf72b6c8775abf4edc8b8bd29e60db62af08, release tag was created in b61fe7fe80681ee23f6f6b35839d73e745cb0ec7
  2. npm outdated in project dir to see that update available
  3. npm info react-native | grep 0.48.4 to confirm that version 0.48.4 available

Expected Behavior

npm outdated should show something like:

Package                              Current           Wanted  Latest  Location
babel-preset-react-native              2.1.0            2.1.0   4.0.0  MyProject
react                        16.0.0-alpha.12  16.0.0-alpha.12  15.6.1  MyProject
react-native                          0.48.3           0.48.3  0.48.4  MyProject
react-test-renderer          16.0.0-alpha.12  16.0.0-alpha.12  15.6.1  MyProject

npm info react-native | grep 0.48.4 should return something like (time can be differrent):

'0.48.4': '2017-09-18T22:40:23.133Z'

Actual Behavior

npm outdated don’t show react-native 0.48.4:

Package                              Current           Wanted  Latest  Location
babel-preset-react-native              2.1.0            2.1.0   4.0.0  MyProject
react                        16.0.0-alpha.12  16.0.0-alpha.12  15.6.1  MyProject
react-test-renderer          16.0.0-alpha.12  16.0.0-alpha.12  15.6.1  MyProject

npm info react-native | grep 0.48.4 don’t return anything

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
vovkasmcommented, Sep 21, 2017

@grabbou, 0.48.4 still not published in npm registry, so the bug not fixed. See my previous message… may be react-native-bot can’t publish to npm, because it needs email verification.

1reaction
vovkasmcommented, Sep 20, 2017

Workaround to unblock developers who do TDD: Place file jest/setup.js (name can vary):

const NativeModules = {
  BlobModule: {
    BLOB_URI_SCHEME: 'content',
    BLOB_URI_HOST: null,
    enableBlobSupport: jest.fn(),
    disableBlobSupport: jest.fn(),
    createFromParts: jest.fn(),
    sendBlob: jest.fn(),
    release: jest.fn(),
  },
}

Object.keys(NativeModules).forEach(name => {
  mockReactNativeModule(name, NativeModules[name])
})

function mockReactNativeModule(name, shape) {
  jest.doMock(name, () => shape, {virtual: true})
  require('react-native').NativeModules[name] = shape // this is bad, but I don't know how to modify jest mock
}

point jest setup to this file (most probably this is under “jest” key in package.json):

...
  "jest": {
    "preset": "react-native",
    "setupFiles": [
      "<rootDir>/jest/setup.js"
    ],
 ...
Read more comments on GitHub >

github_iconTop Results From Across the Web

TextInput allow font scaling false - Stack Overflow
Therefore, I may set a fixed font size for Text , but not TextInput . Is there any workaround for this issue? My...
Read more >
simpletransformers 0.48.4 - PyPI
An easy-to-use wrapper library for the Transformers library. Navigation. Project description; Release history; Download files ...
Read more >
Comparative Performance of Acoustic-tagged and PIT-tagged ...
Travel times between release and downstream dams were not significantly different between acoustic-tagged and PIT-tagged fish for the majority of reaches.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found