React-native-gifted-chat: expo.io demo does not work

Created on 19 May 2019  路  10Comments  路  Source: FaridSafi/react-native-gifted-chat

Issue Description

Wanted to give the demo on expo.io that is linked from the Github repo's main page a try but failed.

Device: (1052:881) Unable to resolve module 'module://react-native/Libraries/Image/resolveAssetSource.js' Evaluating module://react-native/Libraries/Image/resolveAssetSource.js Evaluating module://react-native-gifted-chat.js Evaluating module://App.js.js Loading module://App.js

Steps to Reproduce / Code Snippets

Follow the link to expo.io demo. https://snack.expo.io/@xcarpentier/gifted-chat

Expected Results

Demo works similar to the GIF on repo's main page.

wontfix

All 10 comments

+1
Trying to build out a basic example to explain another issue and can't get a snack to work.

I worked around it by rolling back to a previous release version. Code changes were performed since then which broke expo.io compatibility.
On expo.io, here is my package.json

{ "dependencies": { "prop-types": "15.6.2", "react-native-gifted-chat": "0.7.0" } }

I worked around it by rolling back to a previous release version. Code changes were performed since then which broke expo.io compatibility.
On expo.io, here is my package.json

{ "dependencies": { "prop-types": "15.6.2", "react-native-gifted-chat": "0.7.0" } }

Thank you. It Works for me

This applies to basically any use of the latest version of Gifted Chat on Snack. I made a very minimal example here: https://snack.expo.io/@llamaluvr/gifted-chat-does-not-work-on-expo-issue and it has the same error.

It appears that the issue could be resolved by using React Native video from Expo, per https://github.com/react-native-community/react-native-video/issues/1474. However, I'm not sure how this is done in a way that is compatible with using Gifted Chat in bare RN, Expo, Snack, etc. And this seems like it may be just covering up the real problem. Why wouldn't Image.resolveAssetSource() be available/

UPDATE: I just confirmed it was working in Snack as of 0.9.0, but broke after that.

Getting the same issue here:

Device: (1053:881) Unable to resolve module 'module://react-native/Libraries/Image/resolveAssetSource.js'
  Evaluating module://react-native/Libraries/Image/resolveAssetSource.js
  Evaluating module://react-native-gifted-chat.js
  Evaluating module://App.js.js
  Loading module://App.js

same issue :'(

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

bad bot

bad bot x2 there is no answer yet

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arayaryoma picture arayaryoma  路  3Comments

luisar picture luisar  路  3Comments

Fr33maan picture Fr33maan  路  3Comments

xcxooxl picture xcxooxl  路  3Comments

luisfuertes picture luisfuertes  路  3Comments