@rnmapbox/maps 10.0.6 → 10.0.7-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,9 +6,16 @@ class RCTMGLImage : UIView {
|
|
|
6
6
|
|
|
7
7
|
var image: UIImage? = nil
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
@objc
|
|
10
|
+
var sdf: Bool = false
|
|
11
|
+
|
|
12
|
+
@objc
|
|
10
13
|
var stretchX: [[NSNumber]] = []
|
|
14
|
+
|
|
15
|
+
@objc
|
|
11
16
|
var stretchY: [[NSNumber]] = []
|
|
17
|
+
|
|
18
|
+
@objc
|
|
12
19
|
var content: [NSNumber]? = nil
|
|
13
20
|
|
|
14
21
|
weak var images: RCTMGLImageSetter? = nil {
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
#import <React/RCTBridgeModule.h>
|
|
2
2
|
#import <React/RCTViewManager.h>
|
|
3
3
|
|
|
4
|
+
|
|
5
|
+
@interface RCTConvert (NSNumberArrayArray)
|
|
6
|
+
|
|
7
|
+
+ (NSArray<NSArray<NSNumber*>*> *)NSNumberArrayArray:(id)json;
|
|
8
|
+
|
|
9
|
+
@end
|
|
10
|
+
|
|
11
|
+
@implementation RCTConvert (NSNumberArrayArray)
|
|
12
|
+
|
|
13
|
+
+(NSArray<NSArray<NSNumber*>*> *)NSNumberArrayArray : (id)json RCT_DYNAMIC
|
|
14
|
+
{
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@end
|
|
19
|
+
|
|
20
|
+
|
|
4
21
|
@interface RCT_EXTERN_MODULE(RCTMGLImageManager, RCTViewManager)
|
|
5
22
|
|
|
23
|
+
RCT_EXPORT_VIEW_PROPERTY(stretchX, NSArray<NSArray<NSNumber*>>)
|
|
24
|
+
RCT_EXPORT_VIEW_PROPERTY(stretchY, NSArray<NSArray<NSNumber*>>)
|
|
25
|
+
RCT_EXPORT_VIEW_PROPERTY(content, NSArray<NSNumber*>)
|
|
26
|
+
RCT_EXPORT_VIEW_PROPERTY(sdf, BOOL)
|
|
6
27
|
RCT_EXPORT_VIEW_PROPERTY(name, NSString)
|
|
7
28
|
|
|
8
29
|
@end
|
package/ios/install.md
CHANGED
|
@@ -27,9 +27,9 @@ Add the following to your `ios/Podfile`:
|
|
|
27
27
|
end
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
Set the `$RNMapboxMapsImpl` to `mapbox` aka v10 implementation [see bellow for detailed instructions](#mapbox-maps-sdk-v10)
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Run `pod install` to download the proper mapbox dependency.
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
35
|
# Go to the ios folder
|