React-native-gifted-chat: Error when using with react-native-web

Created on 25 Feb 2017  路  5Comments  路  Source: FaridSafi/react-native-gifted-chat

Issue Description

Throws error when using with react-native-web:

Error: Cannot find module "./ActionSheet"

Additional Information

  • React Native version: 0.33.0
  • react-native-gifted-chat version: 0.1.3
  • Platform(s) (iOS, Android, or both?): web

Most helpful comment

Solved by adding this to webpack.config.js:

    resolve: {
        alias: {
            "react-native": "react-native-web",
            "./ActionSheet": "./ActionSheet.ios.js"
        },  
    },

All 5 comments

@karaxuna is this related to this project?

Solved by adding this to webpack.config.js:

    resolve: {
        alias: {
            "react-native": "react-native-web",
            "./ActionSheet": "./ActionSheet.ios.js"
        },  
    },

@abrichr does it mean you successfully run this project on the web platform thanks to react-native-web ?

As I'm exploring using this chat lib as a replacement of Intercom, I wonder if I can build the "intercom chat admin" with it.

If this project is compatible with react-native-web with just a little bit of conf it would be nice to add this to README

@slorber are you using GC? ;)

Only with you :)
It was actually simpler to eject instead of reimplementing intercom UI on web+rn for my project

Was this page helpful?
0 / 5 - 0 ratings