Detaysoft / react-chat-elements

Reactjs chat elements chat UI, react chat components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse Error for React Native Elements -- Unexpected Tokens

mohannva opened this issue · comments

There are unexpected errors (assumedly related to webpack and babel) that are causing parse errors when importing react native components:

./node_modules/react-chat-elements/native/ChatItem/ChatItem.js 16:12
Module parse failed: Unexpected token (16:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|     render() {
|         return (
>             <View
|                 style={styles.rceContainerCitem}
|                 onClick={this.props.onClick}
./node_modules/react-chat-elements/native/MessageBox/MessageBox.js 29:12
Module parse failed: Unexpected token (29:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
|         return (
>             <View
|                 style={styles.rceContainerMbox}
|                 onClick={this.props.onClick}>
./node_modules/react-chat-elements/native/MessageList/MessageList.js 50:12
Module parse failed: Unexpected token (50:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|     render() {
|         return (
>             <ScrollView
|                 ref={this.loadRef.bind(this)}
|                 style={styles.rceContainerMlist}>`