Comments (7)
same problem, need help
from react-native.
One possible solution i see is using strong warapper class/struct for alias types
@netmaxt3r I believe the best solution would be the one you suggested, to wrap the types into a struct and use them so the overload resolution won't be ambiguous.
If you could send over a PR to draft this fix, we can look into merging it (or see if there are any blockers)
from react-native.
@cortinico please see PR #44123 , I am pretty new to codegen, i need to figure out the call stack for static inline std::string toString(const ${enumMask}Wrapped &wrapped)
function and check other platforms + update jest snapshots. Please review changes with internal team if i missed any scenario.
from react-native.
Thanks for the reproducer @netmaxt3r
One possible solution i see is using strong warapper class/struct for alias types, Or is there any compiler flag we can use to fix function overloading?
Type wrappers could be a solution here, or we could qualify the fromRawValue
function with the module name so they won't clash at runtime.
Let me get back to you on potential solution here.
from react-native.
we could qualify the
fromRawValue
function with the module name
we need to consider single module having multiple array enum props as well , which could clash each other in this case
from react-native.
we could qualify the
fromRawValue
function with the module namewe need to consider single module having multiple array enum props as well , which could clash each other in this case
Ah that's also a really valid scenario
from react-native.
@cortinico any news on the possible approach to fix this ? If i get direction i can start working on a PR
from react-native.
Related Issues (20)
- Fatal error "available height is undefined" when editing textinput the app closes HOT 3
- Inverted Flatlist not working when scrolled HOT 5
- `TextInput` cursor lags behind text when component is controlled if Auto-Correction and Predictive Text are enabled HOT 4
- RNSVG same register view HOT 4
- Firestore encountered gRPC-C++ error while upgrading Firebase module to 19.2(iOS) HOT 3
- 'selection' prop is not working in TextInput on Android after React Native upgrade to v0.73 HOT 2
- Project with React Native SVG fails to build on 0.74.0-rc.9 with new architecture HOT 7
- XMLHttpRequest Object throws occasional "Network Error" in TestFlight Production Environment HOT 2
- Failure to Generate iOS React Native 0.72.12 Project in Custom Directory HOT 6
- Error React Native app:checkDebugAarMetadata HOT 2
- Focus doesn't move to TextInputs with tab key from external keyboard on android. HOT 1
- Turkish Character Display Problem on Android; Letters "i" turn into "ı" HOT 4
- React Native 0.73 Onboarding Flash Loading & Blank Screen HOT 5
- `keyboardDidChangeFrame` and `keyboardWillChangeFrame` not fires on Android HOT 2
- Yarn android HOT 3
- npx [email protected] init cammnd installs the lattest version of react-native HOT 5
- android onScrollEndDrag throttled by scrollEventThrottle HOT 1
- [iOS] VoiceOver reads the placeholder in TextInput HOT 3
- List<ReactPackage> packages = new PackageList(this).getPackages(); [ANDROID] HOT 3
- [LATEST]: MonopolyGo Free Dice rolls links Today April 2024 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native.