I tried to alias react-native-safe-area-context to react-native-safe-area-context/lib/module/index.js and to react-native-safe-area-context/lib/commonjs/index.js. Both resulting in this error
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
This is my vite.config
I tried to alias
react-native-safe-area-context
toreact-native-safe-area-context/lib/module/index.js
and toreact-native-safe-area-context/lib/commonjs/index.js
. Both resulting in this errorreact-native-web
itself works fine with Vite.Related https://github.com/necolas/react-native-web/issues/2292.
I'm new to this subject, but shouldn't there be specific distribution for web?