Skip to content
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

Add Fabric support #90

Merged

Conversation

j-piasecki
Copy link
Contributor

@j-piasecki j-piasecki commented Nov 23, 2022

PR adding Fabric support to the library. Custom cpp state implementation is inspired by react-native-screens and the measurement methods are mainly taken from RN core.

Closes #87

@j-piasecki j-piasecki marked this pull request as draft November 23, 2022 15:31
@j-piasecki j-piasecki marked this pull request as ready for review November 25, 2022 15:05
Copy link

@WoLewicki WoLewicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

view.setStyle(styleName);
}

@ReactProp(name = ViewProps.COLOR, customType = "Color")
@Override
@ReactProp(name = ViewProps.COLOR)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is customType = "Color" gone here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of adding processColor in JS the prop stopped working when customType = "Color" was there.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was processColor added in the first place?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 45c5d5e. I don't particularly remember why I've done it this way 😅.

namespace react
{

Size RNCProgressBarMeasurementsManager::measure(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in 722b62f.

react-native.config.js Outdated Show resolved Hide resolved
@zabojad
Copy link

zabojad commented Jun 1, 2023

Hi there ! @WoLewicki @j-piasecki Do you need a hand to merge it? I really need it so I could help if you want...

@WoLewicki
Copy link

We don't have the rights to merge it unfortunately 😞 You can try and ping the library maintainers to do it.

@Naturalclar Naturalclar merged commit 6514cad into react-native-progress-view:master Jun 20, 2023
@WoLewicki
Copy link

@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 🚀

@j-piasecki
Copy link
Contributor Author

Here it is: #96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support new React Native new architecture (TurboModules/Fabric)
4 participants