nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.54k stars 180 forks source link

`contentPosition` prop being passed to DOM #400

Closed sarat1669 closed 1 year ago

sarat1669 commented 1 year ago

Adding the contentPosition property raises a warning

<SolitoImage alt="Tribe" fill contentPosition="top center" src="/assets/tribe.webp" />
Warning: React does not recognize the `contentPosition` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `contentposition` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
    at img
    at eval (webpack-internal:///../../node_modules/next/dist/client/image.js:229:11)
    at eval (webpack-internal:///../../node_modules/next/dist/client/image.js:320:11)
    at SolitoImage (webpack-internal:///../../node_modules/solito/build/image/expo/image.web.js:20:108)
nandorojo commented 1 year ago

you’re on RNW 0.19 i assume? or using tamagui?

nandorojo commented 1 year ago

Please upgrade to 3.2.8

sarat1669 commented 1 year ago

I'm using tamagui