react-native-macos/Examples
Christoph Jerolimov cb874a55aa Add MapView annotation callback when it gets / lost the focus
Summary:
For my project it was required to receive a notification when the MapView annotation was deselected.

So I renamed `onAnnotationPress` to `onAnnotationSelected` and added a new method `onAnnotationDeselected`, this names was "inspired" by the underlaying iOS API. The old API was still called and marked as deprecated.

But maybe you have an idea for a better naming (onAnnotationFocus/-Blur?) -- or should a deselected call the press method again without an annotation (undefined)?
Closes https://github.com/facebook/react-native/pull/5167

Reviewed By: svcscm

Differential Revision: D2869695

Pulled By: nicklockwood

fb-gh-sync-id: 91795ac3f1e4533b250af8901534d8870729d9db
2016-01-29 06:26:30 -08:00
..
2048 Bugfix - Typos 2015-12-15 09:09:32 -08:00
Movies PixelRatio.pixel() 2016-01-15 05:15:31 -08:00
TicTacToe Remove newline in TicTacToe example 2015-11-30 11:11:24 -08:00
UIExplorer Add MapView annotation callback when it gets / lost the focus 2016-01-29 06:26:30 -08:00
.eslintrc Add global flow types to eslint globals 2016-01-27 15:55:34 -08:00