Skip to content

Fixed re-render not updating MapView.Circle component in UI when radius or center coordinates change.#2101

Merged
rborn merged 1 commit intoreact-native-maps:masterfrom
AustinHunt:circle-rerender-fix
Mar 15, 2018
Merged

Fixed re-render not updating MapView.Circle component in UI when radius or center coordinates change.#2101
rborn merged 1 commit intoreact-native-maps:masterfrom
AustinHunt:circle-rerender-fix

Conversation

@AustinHunt
Copy link
Contributor

Does any other open PR do the same thing?

Not currently.

What issue is this PR fixing?

The circle will not re-render when radius or center changes. This is due to a simple mistake in AIRMap.m

#187 (comment)

How did you test this PR?

Tested by creating a project in which the radius and lat/lng values can be changed dynamically. When these values change, the corresponding re-render updates the view to match the new values.

@AustinHunt AustinHunt mentioned this pull request Mar 15, 2018
@rborn rborn merged commit afa4bfa into react-native-maps:master Mar 15, 2018
@AustinHunt AustinHunt deleted the circle-rerender-fix branch March 15, 2018 17:13
rostislav-simonik pushed a commit to technology-studio-forks/react-native-maps that referenced this pull request Jul 4, 2018
pinpong pushed a commit to pinpong/react-native-maps that referenced this pull request Feb 28, 2025
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.

2 participants