GeekyAnts / GeekyAnts/nativebase-templates
Images not showing up in Next
- Dominant language
- JavaScript
- Stars
- 73
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
Is there a way to get images showing up in Next?
I am trying to use this configuration, after yarn add next-images in my next folder, but it isn't working:
/** @type {import('next').NextConfig} */
const { withNativebase } = require('@native-base/next-adapter')
```
module.exports = withNativebase({
dependencies: [
'@expo/next-adapter',
'next-images',
'react-native-vector-icons',
'react-native-vector-icons-for-web',
'solito',
'app',
],
nextConfig: {
projectRoot: __dirname,
reactStrictMode: true,
webpack5: true,
webpack: (config, options) => {
config.resolve.alias = {
...(config.resolve.alias || {}),
'react-native$': 'react-native-web',
'@expo/vector-icons': 'react-native-vector-icons',
}
config.resolve.extensions = [
'.web.js',
'.web.ts',
'.web.tsx',
...config.resolve.extensions,
]
return config
},
},
})
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.