-
-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-native-ui is not compatible with jsxRuntime: 'classic' #650
Comments
whats the usecase for using jsxRuntime classic? |
(Maintainer of FluentUI React Native here) Would be curious to see if FluentUI React Native can do something differently to not require the classic runtime. This bit of code has always eluded me |
Maybe jsxImportSource is part of the solution rather than classic mode , just guessing based on that issue title but i dont know this area very well😅. |
yea, i guess lets wait for @Saadnajmi 😄 |
There is some discussion here that seems related, seems like maybe if fluent-ui could provide the jsx exports then it could be set as jsxImportSource Nativewind using the same setting, not sure if its for the same reason. |
Describe the bug
I am using
@fluentui/react-native
, but unable to usejsxRuntime: 'classic'
due to@storybook/react-native-ui/src/util/status.tsx
and other file without importingReact
Blank expo template will work as expected with step no.2 below
To Reproduce
Steps to reproduce the behavior:
npx create-expo-app --template expo-template-storybook AwesomeStorybook
presets: [['babel-preset-expo', {jsxRuntime: 'classic'}]],
Expected behavior
What is the correct way to support
classic
runtime on@storybook/react-native-ui
?Screenshots
The text was updated successfully, but these errors were encountered: