Skip to content

Update starter apps to fix image loading issues #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
justinmann opened this issue Jan 18, 2023 · 1 comment
Closed

Update starter apps to fix image loading issues #303

justinmann opened this issue Jan 18, 2023 · 1 comment

Comments

@justinmann
Copy link

withImage & withPlugins no longer work.

I modified my next.config.js to this and it seemed to work:
const { withExpo } = require('@expo/next-adapter')
const withTM = require('next-transpile-modules')([
'solito',
'moti',
'nativewind',
'app',
])
const withFonts = require('next-fonts')

/** @type {import('next').NextConfig} */
const nextConfig = {
// reanimated (and thus, Moti) doesn't work with strict mode currently...
// nandorojo/moti#224
// necolas/react-native-web#2330
// nandorojo/moti#224
// once that gets fixed, set this back to true
reactStrictMode: false,
experimental: {
forceSwcTransforms: true,
swcPlugins: [[require.resolve('./plugins/swc_plugin_reanimated.wasm')]],
},
}

const plugins = [withTM, withFonts, withExpo]

module.exports = () => {
return plugins.reduce((acc, plugin) => plugin(acc), {
...nextConfig,
})
}

console.log(module.exports())

@nandorojo
Copy link
Owner

can you see my latest update and try that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants