Menu, Dialog & ComboBox cause Expo React-native-web app to crash in Chrome #1816
Unanswered
prabir-vora
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I am using NativeWind to support Tailwind UI for my Expo React-native-web project. I am able to get the classNames to work and also basic elements such as Switch, Menu (without styling & transitions), and Transition to work. However, when I try to use components from Tailwind UI which include create Dropdowns, Search Inputs, etc, my app on Chrome crashes. I am attaching code for a sample Combobox I am using in my code.
Combobox
As I open the combobox, my app crashes on Chrome with the following error messages
The app does run on Safari but the search bar styles don't apply as expected. Here is an image -
EXPECTED
ACTUAL
The same thing is happening with Dropdowns and Navigation Drawers too from Tailwind UI site. The Styles on key components Menu.Items & Popup.Dialog seem to be the reason behind the crash and error message on Chrome (I am assuming this based on the fact that not all the classnames these components have are applying on Safari).
My package versions are
"expo": "^46.0.10",
"@headlessui/react": "^1.6.6",
"@react-navigation/native": "^6.0.12",
"@react-navigation/stack": "^6.2.3",
"@tailwindcss/aspect-ratio": "^0.4.2",
"nativewind": "^2.0.7",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-native": "^0.69.5",
"react-native-web": "^0.18.7",
"postcss": "^8.4.16",
"postcss-loader": "^4.2.0",
"tailwindcss": "^3.1.8",
"typescript": "^4.8.2",
My webpack.config is as follow:
My tsconfig.json is as follows:
My babel.config is as follows:
Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions