-
Notifications
You must be signed in to change notification settings - Fork 61
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
Center should be passed as {x: 0, y: 0} otherwise it won't update #27
Comments
Facing the same issue |
@oguzhnatly You can use our fork |
@oguzhnatly Sorry, we did not make a PR nor fork for this. However in the code you can simply make an HOC with const convertedCenter = useMemo(() => {
return !center || Platform.OS !== 'ios' ? center : { x: center[0], y: center[1] };
}, [center]); |
Thanks @bimusiek! |
I've tried passing it as (iOS 16.2, RN 0.71.4) |
On iOS, if you pass center as
[0, 0]
and dynamically update it to other value, it won't be updated. As on native side, it is recognised as CGPoint (not NSArray) thus React will not trigger setter for this property if it is not x,y;The text was updated successfully, but these errors were encountered: