I’ve been trying to follow the brief guides on using expo generate-module
and expo-module-scripts
, but the code they generate just does not work universally. For example,
/Users/noahgray/Projects/stanbase/native/node_modules/stanbase-ui/build/TabBar/index.js 13:33
Module parse failed: Unexpected token (13:33)
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
| const BottomTab = createBottomTabNavigator();
| const { dark } = Colors;
> const TabNavigator = (props) => (<BottomTab.Navigator initialRouteName="Home" tabBarOptions={{
| activeTintColor: dark.tabIconSelected,
| inactiveTintColor: dark.tabIconDefault,
Is what my consuming expo app puts out when importing my built module. Why? It’s so unclear.