-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
can not change dark theme in ViewNativeComponent #461
Comments
Babel plugin looks for React Native components based on import from 'react-native'. This is currently not supported as you import from nested path. |
will support enable whiteList babel in the future ? |
I want to report issue one more with dark theme // Not Working
const mergedStyles = [styles.container(flex, props.bgColor), styles.box];
return <View style={mergedStyles}/>
/// Working
<View style={[styles.container(flex, props.bgColor), styles.box]}> |
I'm not sure, this is private path, why do you import View from this path?
Thanks, I'm aware of it. There is no flatMap underneath, so it won't work with |
thank you for now I plan to use unistyle and I want to explore and apologize there are many report to you |
This is common practice nowadays to use lean Can we consider making babel plugin customisable to set custom import paths like |
At some point probably, but for now I want to make it work with basic setups. |
Description
import View from "react-native/Libraries/Components/View/ViewNativeComponent";
not workimport { View } from "react-native";
work fineScreen.Recording.2024-12-20.at.13.31.55.mov
Steps to Reproduce
Snack or Repository Link (Optional)
https://github.com/chanphiromsok/asdf-tr
Unistyles Version
3.0.0-beta.4
React Native Version
0.76.5
Platforms
Android, iOS
Expo
Yes
The text was updated successfully, but these errors were encountered: