Example projects that demonstrate how to use Expo APIs and integrate Expo with other popular tools
2.14k
stars
853
forks
source link
getting this ERROR Warning: You are setting the style `{ shadowOffset: ... }` as a prop. You should nest it in a style object. E.g. `{ style: { shadowOffset: ... } }` by creating a project using yarn create-expo-app -e with-router-tailwind #461
Describe the bug
created a new project with yarn create expo -e with-router-tailwind and run with yarn start, after that getting this ERROR Warning: You are setting the style { shadowOffset: ... } as a prop. You should nest it in a style object. E.g. { style: { shadowOffset: ... } }
Expected behavior
It should add shadow to explore button but it is not adding
Screenshots
Desktop (please complete the following information):
OS: Windows
Smartphone (please complete the following information):
Device: Realme Narzo 50
OS: Linux
Additional context
created a new project with yarn create expo -e with-router-tailwind and run with yarn start, after that getting this ERROR Warning: You are setting the style { shadowOffset: ... } as a prop. You should nest it in a style object. E.g. { style: { shadowOffset: ... } }
I have found that it is because of shadow style of Explore button
Describe the bug created a new project with yarn create expo -e with-router-tailwind and run with yarn start, after that getting this ERROR Warning: You are setting the style
{ shadowOffset: ... }
as a prop. You should nest it in a style object. E.g.{ style: { shadowOffset: ... } }
Here is the repo url: https://github.com/expo/examples/tree/master/with-router-tailwind
To Reproduce
you should fix the issues with shadow property
Expected behavior It should add shadow to explore button but it is not adding
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context created a new project with yarn create expo -e with-router-tailwind and run with yarn start, after that getting this ERROR Warning: You are setting the style
{ shadowOffset: ... }
as a prop. You should nest it in a style object. E.g.{ style: { shadowOffset: ... } }
I have found that it is because of shadow style of Explore button
Here is the repo url: https://github.com/expo/examples/tree/master/with-router-tailwind
When I click on this button I can see this error on my terminal Also I checked with shadow-lg but same error and no effect on the button