NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Cannot find module 'react/lib/ReactNativePropRegistry' from ...

Open msom opened this issue 10 years ago • 24 comments

...

  • computeProps.js
  • Button.js

with react 15.4.1

var ReactNativePropRegistry = require('ReactNativePropRegistry'); seems to work

msom avatar Nov 24 '16 13:11 msom

hjc. Me too. so I use react 15.3.2. Admin @nativebase please fix it. Thanks

tanmynguyen avatar Nov 25 '16 05:11 tanmynguyen

I using native-base: 0.5.15

tanmynguyen avatar Nov 25 '16 05:11 tanmynguyen

+1

jasonbahl avatar Nov 25 '16 17:11 jasonbahl

+1

jaison-x avatar Nov 25 '16 17:11 jaison-x

+1

Deepankar01 avatar Nov 25 '16 18:11 Deepankar01

+1

matthieugayon avatar Nov 25 '16 18:11 matthieugayon

+1

helloncanella avatar Nov 26 '16 15:11 helloncanella

+1

ujwal-setlur avatar Nov 26 '16 17:11 ujwal-setlur

+1

ottoo avatar Nov 26 '16 19:11 ottoo

Replacing with

import ReactNativePropRegistry from 'react-native/Libraries/Renderer/src/renderers/native/ReactNativePropRegistry';

worked, but ReactNativePropRegistry is an internal API, I believe, and not public. Can this call be replaced with a public API?

Can this be resolved quickly please?

ujwal-setlur avatar Nov 27 '16 01:11 ujwal-setlur

Actually, the following work:

import { ReactNativePropRegistry } from 'react-native';

OR

var ReactNativePropRegistry = require{'react-native'};

So, it seems that ReactNativePropRegistry is indeed publicly exposed now, but it should not be referenced with an absolute path.

This needs to be fixed in:

  • NativeBase Components/Widgets/Button.js Utils/computeProps.js

  • react-native-easy-grid Utils/computeProps.js

ujwal-setlur avatar Nov 27 '16 03:11 ujwal-setlur

I have created a pull request for this.

ujwal-setlur avatar Nov 27 '16 06:11 ujwal-setlur

Sorry, my comment earlier was wrong. The explicit path still has to be specified. I saw that being checked in.

ujwal-setlur avatar Nov 27 '16 09:11 ujwal-setlur

+1

streamlesswaveson avatar Nov 28 '16 03:11 streamlesswaveson

I encountered this error, but it seems to have stuck around even after removing native-base?

I even tried using react-native init <new project> to create an entirely new project -- but the error persists? Any insight on why this might be?

The path the error is referencing doens't even exist..

dharness avatar Nov 28 '16 08:11 dharness

Fixed with v0.5.16

sankhadeeproy007 avatar Nov 28 '16 11:11 sankhadeeproy007

Seems that error still persist. However, the issue is with the package react-native-easy-grid. It has to be updated as well.

donszek avatar Nov 28 '16 13:11 donszek

Correct. That has to be updated as well and the dependency in native-base has to updated. 

Get Outlook for iOS

On Mon, Nov 28, 2016 at 5:10 AM -0800, "tzyhhaur" [email protected] wrote:

Seems that error still persist. However, the issue is with the package react-native-easy-grid. It has to be updated as well.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

ujwal-setlur avatar Nov 28 '16 14:11 ujwal-setlur

Fixed with latest release 0.5.18

SupriyaKalghatgi avatar Nov 29 '16 13:11 SupriyaKalghatgi

getting the same error message but im not even using 'ReactNativePropRegistry'

minamakhtar avatar Dec 01 '16 02:12 minamakhtar