Chion82 / native-base-web

NativeBase for React Native Web. The missing piece of RN4WEB.
https://chion82.gitbooks.io/nativebase-for-web/content/
Apache License 2.0
73 stars 22 forks source link

Error: Can't resolve 'react-native/Libraries/Renderer/src/renderers/native/ReactNativePropRegistry' #7

Open srt0422 opened 7 years ago

srt0422 commented 7 years ago

The issue is described here: https://github.com/start-react/native-starter-kit/issues/55

To quote the above issue :

It's fixed in NativeBase 0.5.18: #328 But native-starter-kit dependencies referencing NativeBase v "0.5.11" and RN 0.35.0

Is it possible to upgrade to NativeBase 0.5.11 and RN 0.38.0 ?

I realize you're working on updating to Native Base v2. Is there any way to address this issue in the meantime?

I tried getting around it by updating webpack config: resolve: { extensions: [ ".js", ".jsx", ".css" ], alias: { 'react-native':'react-native-web', 'native-base': 'native-base-web', 'react/lib/ReactNativePropRegistry': 'react-native-web/dist/modules/ReactNativePropRegistry', 'react-native/Libraries/Renderer/src/renderers/native/ReactNativePropRegistry': 'react/lib/ReactNativePropRegistry' } }

I also tried this alias:

'react-native/Libraries/Renderer/src/renderers/native/ReactNativePropRegistry': 'react-native-web/dist/modules/ReactNativePropRegistry'

Chion82 commented 7 years ago

Downgrading React to 15.4.1 should solve the problem. If you are using features from the latest React, keep using this workaround.

NativeBase V2 support is currently suspended because we have encountered too many issues when migrating the latest React Native components to the web runtime. Yeah, need help :(

srt0422 commented 7 years ago

Are you guys still working on it? if there's a roadmap I might be able to lend a hand from time to time.

@Chion82 Can I help in any way?