mastermoo / react-native-action-button

customizable multi-action-button component for react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

You may need an appropriate loader to handle this file type, currently no loader s are configured to process this fil

kenpower opened this issue · comments

Tried the RNAB in the starter react native app

>npm i -g create-react-native-app
>create-react-native-app myRNapp
>cd myRNapp
// add **import ActionButton from '@kenetto/react-native-action-button'** to App,js
>expo start --web

I get the following error:

/repos/myRNapp/node_modules/@kenetto/react-native-action-b
utton/ActionButton.js 127:6
Module parse failed: Unexpected token (127:6)
You may need an appropriate loader to handle this file type, currently no loader
s are configured to process this file. See https://webpack.js.org/concepts#loade
rs
|
|     return (
>       <View
|         style={[
|           parentStyle,

I know this exact error was addressed in #149, and the answer was that the component only works in react-native. But we are still seeing this error in react native.