When I try to run it on web (react-native-web) I get a syntax error.
Failed to compile.
./node_modules/react-native-gifted-chat/src/GiftedChat.js
SyntaxError: /Users/user/app/node_modules/react-native-gifted-chat/src/GiftedChat.js: Unexpected token (308:6)
306 | const AnimatedView = this.props.isAnimated === true ? Animated.View : View;
307 | return (
> 308 | <AnimatedView
| ^
309 | style={{
310 | height: this.state.messagesContainerHeight,
311 | }}
I don't know why this problem exists as I tried earlier versions on the web and also this version on Android and it worked perfectly.
I checked the GiftedChat.js file and it seems to be fine.
react-native-webWorks perfectly on react-web-gifted-chat
same problem, but with <View> tag
and yes, it works with react-web-gifted-chat, but it not updated and stale version of react-native-gifted-chat.
e.g.: In react-web-gifted-chat message and user have id instead _id in react-native-gifted-chat etc.
I think, better to use new version with new features
Can you reopen this issue?
Most helpful comment
same problem, but with
<View>tagand yes, it works with
react-web-gifted-chat, but it not updated and stale version ofreact-native-gifted-chat.e.g.: In
react-web-gifted-chatmessage and user haveidinstead_idinreact-native-gifted-chatetc.I think, better to use new version with new features
Can you reopen this issue?