How to change carousel items’ width not losing center property?
Wondering why the carousel loses the text-align property (value ‘center’) when changing the carousel item’s width. I’m new to writing CSS, and I need to change the carousel item’s width in the media screen and (max-width:480px). I’m just stuck. Big thanks in advance! I tried to change the items’ width but the carousel is losing text-align property (value ‘center’). P.S Don’t judge me too strictly. It’s my first site
which is compatible react-native carousel snap version to react -native 0.74.1?
“@types/react-native-snap-carousel”: “^3.8.11”, i tried this version with react-native 0.74.1 but i have faced some issues “my server development page goes to blank”and i have this error message from console Uncaught TypeError: Cannot read properties of undefined (reading ‘array’)
at <static_initializer> (C:UsersHUAWEIworkspaceGrabatozfrontendgrab-frontendnode_modulesreact-native-snap-carouselindex.js:13:1)
at C:UsersHUAWEIworkspaceGrabatozfrontendgrab-frontendnode_modulesreact-native-snap-carouselindex.js:7:23
at loadModuleImplementation (C:UsersHUAWEIworkspaceGrabatozfrontendgrab-frontendnode_modulesmetro-runtimesrcpolyfillsrequire.js:282:19)
at guardedLoadModule (C:UsersHUAWEIworkspaceGrabatozfrontendgrab-frontendnode_modulesmetro-runtimesrcpolyfillsrequire.js:182:1)
at metroRequire (C:UsersHUAWEIworkspaceGrabatozfrontendgrab-frontendnode_modulesmetro-runtimesrcpolyfillsrequire.js:91:43)
at C:UsersHUAWEIworkspaceGrabatozfrontendgrab-frontendsrccomponentsBanner.js:3:51
at loadModuleImplementation (C:UsersHUAWEIworkspaceGrabatozfrontendgrab-frontendnode_modulesmetro-runtimesrcpolyfillsrequire.js:282:19)
at guardedLoadModule (C:UsersHUAWEIworkspaceGrabatozfrontendgrab-frontendnode_modulesmetro-runtimesrcpolyfillsrequire.js:182:1)
at metroRequire (C:UsersHUAWEIworkspaceGrabatozfrontendgrab-frontendnode_modulesmetro-runtimesrcpolyfillsreq