using react-native-elements with expo web v33
See original GitHub issueHello All,
I have been using react-native-elements with react native web for some time now. I recently upgraded to expo v33 and it supports web now. I am wondering if anyone knows what should I put in webpack.config.js so it works with expo web.
A sample webpack.config.js from expo is given below. Any suggestion how to add instruction to transpile react-native-elements in here
======================================= const merge = require(‘webpack-merge’); // This will automatically get the dev/prod config based on process.env.NODE_ENV. const expoConfig = require(‘@expo/webpack-config’);
// Create a loader which can import .obj & .mtl (popular 3D model files (not popular enough to be part of the default config though… 😏))
const modelLoaderConfiguration = {
test: /.(obj|mtl)$/,
use: {
loader: ‘file-loader’,
},
};
// Expo expects a function so we can pass around options. module.exports = function(env, argv) { return merge(expoConfig(env, argv), { module: { rules: [modelLoaderConfiguration], }, }); };
Issue Analytics
- State:
- Created 4 years ago
- Comments:9

Top Related StackOverflow Question
Actually right now if you’re using later version of expo, there’s no configuration needed.
I just created a fresh expo project, and added react-native-elements.
Project works fine!
Hey @tafelito just letting you know we released a new version to fix this. v1.2.5