Skip to content

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

@srt0422

Description

@srt0422

The issue is described here:
start-react/native-starter-kit#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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions