mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 11:34:23 +00:00
Fix 14436 - Docs: ios-native-ui-guide 'RNTMap' -> 'MKMapView' fix
Summary: Quick fix for https://github.com/facebook/react-native/issues/14436 Closes https://github.com/facebook/react-native/pull/14982 Differential Revision: D5409794 Pulled By: javache fbshipit-source-id: ea59a9a11b689459e68c05a92095fdcee1da717f
This commit is contained in:
parent
c41b5a02f2
commit
e57655274d
@ -116,7 +116,7 @@ Next, let's add the more complex `region` prop. We start by adding the native c
|
|||||||
|
|
||||||
```objectivec
|
```objectivec
|
||||||
// RNTMapManager.m
|
// RNTMapManager.m
|
||||||
RCT_CUSTOM_VIEW_PROPERTY(region, MKCoordinateRegion, RNTMap)
|
RCT_CUSTOM_VIEW_PROPERTY(region, MKCoordinateRegion, MKMapView)
|
||||||
{
|
{
|
||||||
[view setRegion:json ? [RCTConvert MKCoordinateRegion:json] : defaultView.region animated:YES];
|
[view setRegion:json ? [RCTConvert MKCoordinateRegion:json] : defaultView.region animated:YES];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user