Add Fabric support#90
Conversation
|
|
||
| @ReactProp(name = ViewProps.COLOR, customType = "Color") | ||
| @Override | ||
| @ReactProp(name = ViewProps.COLOR) |
There was a problem hiding this comment.
Why is customType = "Color" gone here?
There was a problem hiding this comment.
Because of adding processColor in JS the prop stopped working when customType = "Color" was there.
There was a problem hiding this comment.
Hmm looking e.g. here: https://github.com/software-mansion/react-native-svg/blob/1126079425a1b1a6c6094434f1c199c52ded1817/src/fabric/AndroidSvgViewNativeComponent.ts#L33 and then here: https://github.com/software-mansion/react-native-svg/blob/18a2f93e4057bae3dbdb604d9590861450f23b11/android/src/main/java/com/horcrux/svg/SvgViewManager.java#L101 and here: https://github.com/software-mansion/react-native-svg/blob/18a2f93e4057bae3dbdb604d9590861450f23b11/android/src/main/java/com/horcrux/svg/SvgViewManager.java#L101 and here: https://github.com/software-mansion/react-native-svg/blob/1126079425a1b1a6c6094434f1c199c52ded1817/src/elements/Svg.tsx#L179, maybe we should not use processColor in JS but just do something similar to how it is done in svg?
There was a problem hiding this comment.
Why was processColor added in the first place?
There was a problem hiding this comment.
Done in 45c5d5e. I don't particularly remember why I've done it this way 😅.
| namespace react | ||
| { | ||
|
|
||
| Size RNCProgressBarMeasurementsManager::measure( |
There was a problem hiding this comment.
Could you write a comment from where did you take analogous code with some links and a short explanation of what is done here if needed?
|
Hi there ! @WoLewicki @j-piasecki Do you need a hand to merge it? I really need it so I could help if you want... |
|
We don't have the rights to merge it unfortunately 😞 You can try and ping the library maintainers to do it. |
|
@Naturalclar this PR does not provide support for RN 0.71, but we will soon make a PR with it. Would be nice to merge and release it then 🚀 |
|
Here it is: #96 |
PR adding Fabric support to the library. Custom cpp state implementation is inspired by
react-native-screensand the measurement methods are mainly taken from RN core.Closes #87