@shopify/react-native-skia 2.1.0 → 2.2.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.
- package/android/CMakeLists.txt +1 -1
- package/android/cpp/rnskia-android/OpenGLWindowContext.h +1 -1
- package/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h +1 -1
- package/android/cpp/rnskia-android/RNSkAndroidVideo.cpp +1 -1
- package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.cpp +1 -1
- package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.h +1 -1
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaPictureViewManager.java +6 -0
- package/apple/MetalContext.h +2 -2
- package/apple/MetalWindowContext.h +2 -2
- package/apple/MetalWindowContext.mm +7 -4
- package/apple/RNSkApplePlatformContext.mm +1 -1
- package/apple/RNSkAppleView.h +7 -1
- package/apple/RNSkMetalCanvasProvider.h +4 -1
- package/apple/RNSkMetalCanvasProvider.mm +9 -4
- package/apple/SkiaPictureView.mm +4 -0
- package/apple/SkiaUIView.h +1 -0
- package/apple/SkiaUIView.mm +9 -0
- package/cpp/api/JsiSkImage.h +1 -1
- package/cpp/api/JsiSkSurface.h +1 -1
- package/cpp/api/JsiSkiaContext.h +1 -1
- package/cpp/api/recorder/Convertor.h +16 -0
- package/cpp/api/recorder/ImageFilters.h +20 -0
- package/cpp/api/recorder/Paint.h +4 -0
- package/cpp/api/recorder/RNRecorder.h +6 -0
- package/cpp/rnskia/{DawnContext.h → RNDawnContext.h} +3 -3
- package/cpp/rnskia/{DawnWindowContext.cpp → RNDawnWindowContext.cpp} +3 -3
- package/cpp/rnskia/{DawnWindowContext.h → RNDawnWindowContext.h} +2 -2
- package/cpp/rnskia/RNSkPlatformContext.h +1 -1
- package/lib/commonjs/dom/types/Drawings.d.ts +4 -1
- package/lib/commonjs/dom/types/Drawings.js.map +1 -1
- package/lib/commonjs/dom/types/NodeType.d.ts +2 -1
- package/lib/commonjs/dom/types/NodeType.js +2 -0
- package/lib/commonjs/dom/types/NodeType.js.map +1 -1
- package/lib/commonjs/renderer/Canvas.d.ts +2 -1
- package/lib/commonjs/renderer/Canvas.js +2 -0
- package/lib/commonjs/renderer/Canvas.js.map +1 -1
- package/lib/commonjs/renderer/__tests__/e2e/ImageFilter.spec.d.ts +1 -0
- package/lib/commonjs/renderer/components/ImageFilter.d.ts +4 -0
- package/lib/commonjs/renderer/components/ImageFilter.js +13 -0
- package/lib/commonjs/renderer/components/ImageFilter.js.map +1 -0
- package/lib/commonjs/renderer/components/index.d.ts +1 -0
- package/lib/commonjs/renderer/components/index.js +11 -0
- package/lib/commonjs/renderer/components/index.js.map +1 -1
- package/lib/commonjs/skia/types/Matrix4.d.ts +4 -0
- package/lib/commonjs/skia/types/Matrix4.js +18 -1
- package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
- package/lib/commonjs/sksg/Elements.d.ts +2 -1
- package/lib/commonjs/sksg/Elements.js.map +1 -1
- package/lib/commonjs/sksg/Node.d.ts +1 -1
- package/lib/commonjs/sksg/Node.js +1 -1
- package/lib/commonjs/sksg/Node.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Player.js +9 -3
- package/lib/commonjs/sksg/Recorder/Player.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/commands/ImageFilters.js +11 -1
- package/lib/commonjs/sksg/Recorder/commands/ImageFilters.js.map +1 -1
- package/lib/commonjs/specs/SkiaPictureViewNativeComponent.d.ts +1 -0
- package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -1
- package/lib/module/dom/types/Drawings.d.ts +4 -1
- package/lib/module/dom/types/Drawings.js.map +1 -1
- package/lib/module/dom/types/NodeType.d.ts +2 -1
- package/lib/module/dom/types/NodeType.js +2 -0
- package/lib/module/dom/types/NodeType.js.map +1 -1
- package/lib/module/renderer/Canvas.d.ts +2 -1
- package/lib/module/renderer/Canvas.js +2 -0
- package/lib/module/renderer/Canvas.js.map +1 -1
- package/lib/module/renderer/__tests__/e2e/ImageFilter.spec.d.ts +1 -0
- package/lib/module/renderer/components/ImageFilter.d.ts +4 -0
- package/lib/module/renderer/components/ImageFilter.js +5 -0
- package/lib/module/renderer/components/ImageFilter.js.map +1 -0
- package/lib/module/renderer/components/index.d.ts +1 -0
- package/lib/module/renderer/components/index.js +1 -0
- package/lib/module/renderer/components/index.js.map +1 -1
- package/lib/module/skia/types/Matrix4.d.ts +4 -0
- package/lib/module/skia/types/Matrix4.js +16 -0
- package/lib/module/skia/types/Matrix4.js.map +1 -1
- package/lib/module/sksg/Elements.d.ts +2 -1
- package/lib/module/sksg/Elements.js.map +1 -1
- package/lib/module/sksg/Node.d.ts +1 -1
- package/lib/module/sksg/Node.js +1 -1
- package/lib/module/sksg/Node.js.map +1 -1
- package/lib/module/sksg/Recorder/Player.js +9 -3
- package/lib/module/sksg/Recorder/Player.js.map +1 -1
- package/lib/module/sksg/Recorder/commands/ImageFilters.js +11 -1
- package/lib/module/sksg/Recorder/commands/ImageFilters.js.map +1 -1
- package/lib/module/specs/SkiaPictureViewNativeComponent.d.ts +1 -0
- package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -1
- package/lib/typescript/lib/commonjs/renderer/Canvas.d.ts +2 -1
- package/lib/typescript/lib/commonjs/renderer/components/ImageFilter.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/types/Matrix4.d.ts +1 -0
- package/lib/typescript/lib/module/mock/index.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/Canvas.d.ts +2 -1
- package/lib/typescript/lib/module/renderer/components/ImageFilter.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/index.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Matrix4.d.ts +1 -0
- package/lib/typescript/src/dom/types/Drawings.d.ts +4 -1
- package/lib/typescript/src/dom/types/NodeType.d.ts +2 -1
- package/lib/typescript/src/renderer/Canvas.d.ts +2 -1
- package/lib/typescript/src/renderer/__tests__/e2e/ImageFilter.spec.d.ts +1 -0
- package/lib/typescript/src/renderer/components/ImageFilter.d.ts +4 -0
- package/lib/typescript/src/renderer/components/index.d.ts +1 -0
- package/lib/typescript/src/skia/types/Matrix4.d.ts +4 -0
- package/lib/typescript/src/sksg/Elements.d.ts +2 -1
- package/lib/typescript/src/sksg/Node.d.ts +1 -1
- package/lib/typescript/src/specs/SkiaPictureViewNativeComponent.d.ts +1 -0
- package/libs/android/arm64-v8a/libskia.a +0 -0
- package/libs/android/armeabi-v7a/libskia.a +0 -0
- package/libs/android/x86/libskia.a +0 -0
- package/libs/android/x86_64/libskia.a +0 -0
- package/libs/apple/libpathops.xcframework/Info.plist +15 -15
- package/libs/apple/libskia.xcframework/Info.plist +11 -11
- package/libs/apple/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
- package/libs/apple/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
- package/libs/apple/libskia.xcframework/macos-arm64_x86_64/libskia.a +0 -0
- package/libs/apple/libskia.xcframework/tvos-arm64_arm64e/libskia.a +0 -0
- package/libs/apple/libskia.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
- package/libs/apple/libskottie.xcframework/Info.plist +16 -16
- package/libs/apple/libskparagraph.xcframework/Info.plist +8 -8
- package/libs/apple/libsksg.xcframework/Info.plist +6 -6
- package/libs/apple/libskshaper.xcframework/Info.plist +10 -10
- package/libs/apple/libskunicode_core.xcframework/Info.plist +10 -10
- package/libs/apple/libskunicode_libgrapheme.xcframework/Info.plist +14 -14
- package/libs/apple/libsvg.xcframework/Info.plist +15 -15
- package/package.json +1 -1
- package/react-native-skia.podspec +5 -5
- package/src/dom/types/Drawings.ts +5 -0
- package/src/dom/types/NodeType.ts +2 -0
- package/src/renderer/Canvas.tsx +3 -0
- package/src/renderer/__tests__/FitBox.spec.tsx +556 -4
- package/src/renderer/__tests__/e2e/ImageFilter.spec.tsx +99 -0
- package/src/renderer/__tests__/e2e/Paint.spec.tsx +18 -0
- package/src/renderer/__tests__/e2e/Skottie.spec.tsx +24 -1
- package/src/renderer/__tests__/setup.tsx +10 -0
- package/src/renderer/components/ImageFilter.tsx +8 -0
- package/src/renderer/components/index.ts +1 -0
- package/src/skia/types/Matrix4.ts +16 -0
- package/src/sksg/Elements.tsx +2 -0
- package/src/sksg/Node.ts +1 -0
- package/src/sksg/Recorder/Player.ts +7 -7
- package/src/sksg/Recorder/commands/ImageFilters.ts +11 -1
- package/src/specs/SkiaPictureViewNativeComponent.ts +1 -0
- /package/cpp/rnskia/{DawnUtils.h → RNDawnUtils.h} +0 -0
- /package/cpp/rnskia/{ImageProvider.h → RNImageProvider.h} +0 -0
- /package/cpp/rnskia/{WindowContext.h → RNWindowContext.h} +0 -0
@@ -8,7 +8,7 @@
|
|
8
8
|
<key>BinaryPath</key>
|
9
9
|
<string>libskparagraph.a</string>
|
10
10
|
<key>LibraryIdentifier</key>
|
11
|
-
<string>
|
11
|
+
<string>tvos-arm64_arm64e</string>
|
12
12
|
<key>LibraryPath</key>
|
13
13
|
<string>libskparagraph.a</string>
|
14
14
|
<key>SupportedArchitectures</key>
|
@@ -17,40 +17,40 @@
|
|
17
17
|
<string>arm64e</string>
|
18
18
|
</array>
|
19
19
|
<key>SupportedPlatform</key>
|
20
|
-
<string>
|
20
|
+
<string>tvos</string>
|
21
21
|
</dict>
|
22
22
|
<dict>
|
23
23
|
<key>BinaryPath</key>
|
24
24
|
<string>libskparagraph.a</string>
|
25
25
|
<key>LibraryIdentifier</key>
|
26
|
-
<string>
|
26
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
27
27
|
<key>LibraryPath</key>
|
28
28
|
<string>libskparagraph.a</string>
|
29
29
|
<key>SupportedArchitectures</key>
|
30
30
|
<array>
|
31
31
|
<string>arm64</string>
|
32
32
|
<string>arm64e</string>
|
33
|
+
<string>x86_64</string>
|
33
34
|
</array>
|
34
35
|
<key>SupportedPlatform</key>
|
35
|
-
<string>
|
36
|
+
<string>ios</string>
|
37
|
+
<key>SupportedPlatformVariant</key>
|
38
|
+
<string>simulator</string>
|
36
39
|
</dict>
|
37
40
|
<dict>
|
38
41
|
<key>BinaryPath</key>
|
39
42
|
<string>libskparagraph.a</string>
|
40
43
|
<key>LibraryIdentifier</key>
|
41
|
-
<string>ios-
|
44
|
+
<string>ios-arm64_arm64e</string>
|
42
45
|
<key>LibraryPath</key>
|
43
46
|
<string>libskparagraph.a</string>
|
44
47
|
<key>SupportedArchitectures</key>
|
45
48
|
<array>
|
46
49
|
<string>arm64</string>
|
47
50
|
<string>arm64e</string>
|
48
|
-
<string>x86_64</string>
|
49
51
|
</array>
|
50
52
|
<key>SupportedPlatform</key>
|
51
53
|
<string>ios</string>
|
52
|
-
<key>SupportedPlatformVariant</key>
|
53
|
-
<string>simulator</string>
|
54
54
|
</dict>
|
55
55
|
<dict>
|
56
56
|
<key>BinaryPath</key>
|
@@ -23,16 +23,16 @@
|
|
23
23
|
<key>BinaryPath</key>
|
24
24
|
<string>libsksg.a</string>
|
25
25
|
<key>LibraryIdentifier</key>
|
26
|
-
<string>
|
26
|
+
<string>ios-arm64_arm64e</string>
|
27
27
|
<key>LibraryPath</key>
|
28
28
|
<string>libsksg.a</string>
|
29
29
|
<key>SupportedArchitectures</key>
|
30
30
|
<array>
|
31
31
|
<string>arm64</string>
|
32
|
-
<string>
|
32
|
+
<string>arm64e</string>
|
33
33
|
</array>
|
34
34
|
<key>SupportedPlatform</key>
|
35
|
-
<string>
|
35
|
+
<string>ios</string>
|
36
36
|
</dict>
|
37
37
|
<dict>
|
38
38
|
<key>BinaryPath</key>
|
@@ -56,16 +56,16 @@
|
|
56
56
|
<key>BinaryPath</key>
|
57
57
|
<string>libsksg.a</string>
|
58
58
|
<key>LibraryIdentifier</key>
|
59
|
-
<string>
|
59
|
+
<string>macos-arm64_x86_64</string>
|
60
60
|
<key>LibraryPath</key>
|
61
61
|
<string>libsksg.a</string>
|
62
62
|
<key>SupportedArchitectures</key>
|
63
63
|
<array>
|
64
64
|
<string>arm64</string>
|
65
|
-
<string>
|
65
|
+
<string>x86_64</string>
|
66
66
|
</array>
|
67
67
|
<key>SupportedPlatform</key>
|
68
|
-
<string>
|
68
|
+
<string>macos</string>
|
69
69
|
</dict>
|
70
70
|
<dict>
|
71
71
|
<key>BinaryPath</key>
|
@@ -8,19 +8,16 @@
|
|
8
8
|
<key>BinaryPath</key>
|
9
9
|
<string>libskshaper.a</string>
|
10
10
|
<key>LibraryIdentifier</key>
|
11
|
-
<string>
|
11
|
+
<string>ios-arm64_arm64e</string>
|
12
12
|
<key>LibraryPath</key>
|
13
13
|
<string>libskshaper.a</string>
|
14
14
|
<key>SupportedArchitectures</key>
|
15
15
|
<array>
|
16
16
|
<string>arm64</string>
|
17
17
|
<string>arm64e</string>
|
18
|
-
<string>x86_64</string>
|
19
18
|
</array>
|
20
19
|
<key>SupportedPlatform</key>
|
21
|
-
<string>
|
22
|
-
<key>SupportedPlatformVariant</key>
|
23
|
-
<string>simulator</string>
|
20
|
+
<string>ios</string>
|
24
21
|
</dict>
|
25
22
|
<dict>
|
26
23
|
<key>BinaryPath</key>
|
@@ -59,31 +56,34 @@
|
|
59
56
|
<key>BinaryPath</key>
|
60
57
|
<string>libskshaper.a</string>
|
61
58
|
<key>LibraryIdentifier</key>
|
62
|
-
<string>
|
59
|
+
<string>tvos-arm64_arm64e_x86_64-simulator</string>
|
63
60
|
<key>LibraryPath</key>
|
64
61
|
<string>libskshaper.a</string>
|
65
62
|
<key>SupportedArchitectures</key>
|
66
63
|
<array>
|
67
64
|
<string>arm64</string>
|
65
|
+
<string>arm64e</string>
|
68
66
|
<string>x86_64</string>
|
69
67
|
</array>
|
70
68
|
<key>SupportedPlatform</key>
|
71
|
-
<string>
|
69
|
+
<string>tvos</string>
|
70
|
+
<key>SupportedPlatformVariant</key>
|
71
|
+
<string>simulator</string>
|
72
72
|
</dict>
|
73
73
|
<dict>
|
74
74
|
<key>BinaryPath</key>
|
75
75
|
<string>libskshaper.a</string>
|
76
76
|
<key>LibraryIdentifier</key>
|
77
|
-
<string>
|
77
|
+
<string>macos-arm64_x86_64</string>
|
78
78
|
<key>LibraryPath</key>
|
79
79
|
<string>libskshaper.a</string>
|
80
80
|
<key>SupportedArchitectures</key>
|
81
81
|
<array>
|
82
82
|
<string>arm64</string>
|
83
|
-
<string>
|
83
|
+
<string>x86_64</string>
|
84
84
|
</array>
|
85
85
|
<key>SupportedPlatform</key>
|
86
|
-
<string>
|
86
|
+
<string>macos</string>
|
87
87
|
</dict>
|
88
88
|
</array>
|
89
89
|
<key>CFBundlePackageType</key>
|
@@ -8,49 +8,52 @@
|
|
8
8
|
<key>BinaryPath</key>
|
9
9
|
<string>libskunicode_core.a</string>
|
10
10
|
<key>LibraryIdentifier</key>
|
11
|
-
<string>ios-
|
11
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
12
12
|
<key>LibraryPath</key>
|
13
13
|
<string>libskunicode_core.a</string>
|
14
14
|
<key>SupportedArchitectures</key>
|
15
15
|
<array>
|
16
16
|
<string>arm64</string>
|
17
17
|
<string>arm64e</string>
|
18
|
+
<string>x86_64</string>
|
18
19
|
</array>
|
19
20
|
<key>SupportedPlatform</key>
|
20
21
|
<string>ios</string>
|
22
|
+
<key>SupportedPlatformVariant</key>
|
23
|
+
<string>simulator</string>
|
21
24
|
</dict>
|
22
25
|
<dict>
|
23
26
|
<key>BinaryPath</key>
|
24
27
|
<string>libskunicode_core.a</string>
|
25
28
|
<key>LibraryIdentifier</key>
|
26
|
-
<string>tvos-
|
29
|
+
<string>tvos-arm64_arm64e_x86_64-simulator</string>
|
27
30
|
<key>LibraryPath</key>
|
28
31
|
<string>libskunicode_core.a</string>
|
29
32
|
<key>SupportedArchitectures</key>
|
30
33
|
<array>
|
31
34
|
<string>arm64</string>
|
32
35
|
<string>arm64e</string>
|
36
|
+
<string>x86_64</string>
|
33
37
|
</array>
|
34
38
|
<key>SupportedPlatform</key>
|
35
39
|
<string>tvos</string>
|
40
|
+
<key>SupportedPlatformVariant</key>
|
41
|
+
<string>simulator</string>
|
36
42
|
</dict>
|
37
43
|
<dict>
|
38
44
|
<key>BinaryPath</key>
|
39
45
|
<string>libskunicode_core.a</string>
|
40
46
|
<key>LibraryIdentifier</key>
|
41
|
-
<string>tvos-
|
47
|
+
<string>tvos-arm64_arm64e</string>
|
42
48
|
<key>LibraryPath</key>
|
43
49
|
<string>libskunicode_core.a</string>
|
44
50
|
<key>SupportedArchitectures</key>
|
45
51
|
<array>
|
46
52
|
<string>arm64</string>
|
47
53
|
<string>arm64e</string>
|
48
|
-
<string>x86_64</string>
|
49
54
|
</array>
|
50
55
|
<key>SupportedPlatform</key>
|
51
56
|
<string>tvos</string>
|
52
|
-
<key>SupportedPlatformVariant</key>
|
53
|
-
<string>simulator</string>
|
54
57
|
</dict>
|
55
58
|
<dict>
|
56
59
|
<key>BinaryPath</key>
|
@@ -71,19 +74,16 @@
|
|
71
74
|
<key>BinaryPath</key>
|
72
75
|
<string>libskunicode_core.a</string>
|
73
76
|
<key>LibraryIdentifier</key>
|
74
|
-
<string>ios-
|
77
|
+
<string>ios-arm64_arm64e</string>
|
75
78
|
<key>LibraryPath</key>
|
76
79
|
<string>libskunicode_core.a</string>
|
77
80
|
<key>SupportedArchitectures</key>
|
78
81
|
<array>
|
79
82
|
<string>arm64</string>
|
80
83
|
<string>arm64e</string>
|
81
|
-
<string>x86_64</string>
|
82
84
|
</array>
|
83
85
|
<key>SupportedPlatform</key>
|
84
86
|
<string>ios</string>
|
85
|
-
<key>SupportedPlatformVariant</key>
|
86
|
-
<string>simulator</string>
|
87
87
|
</dict>
|
88
88
|
</array>
|
89
89
|
<key>CFBundlePackageType</key>
|
@@ -8,52 +8,49 @@
|
|
8
8
|
<key>BinaryPath</key>
|
9
9
|
<string>libskunicode_libgrapheme.a</string>
|
10
10
|
<key>LibraryIdentifier</key>
|
11
|
-
<string>
|
11
|
+
<string>ios-arm64_arm64e</string>
|
12
12
|
<key>LibraryPath</key>
|
13
13
|
<string>libskunicode_libgrapheme.a</string>
|
14
14
|
<key>SupportedArchitectures</key>
|
15
15
|
<array>
|
16
16
|
<string>arm64</string>
|
17
17
|
<string>arm64e</string>
|
18
|
-
<string>x86_64</string>
|
19
18
|
</array>
|
20
19
|
<key>SupportedPlatform</key>
|
21
|
-
<string>
|
22
|
-
<key>SupportedPlatformVariant</key>
|
23
|
-
<string>simulator</string>
|
20
|
+
<string>ios</string>
|
24
21
|
</dict>
|
25
22
|
<dict>
|
26
23
|
<key>BinaryPath</key>
|
27
24
|
<string>libskunicode_libgrapheme.a</string>
|
28
25
|
<key>LibraryIdentifier</key>
|
29
|
-
<string>
|
26
|
+
<string>tvos-arm64_arm64e</string>
|
30
27
|
<key>LibraryPath</key>
|
31
28
|
<string>libskunicode_libgrapheme.a</string>
|
32
29
|
<key>SupportedArchitectures</key>
|
33
30
|
<array>
|
34
31
|
<string>arm64</string>
|
35
32
|
<string>arm64e</string>
|
36
|
-
<string>x86_64</string>
|
37
33
|
</array>
|
38
34
|
<key>SupportedPlatform</key>
|
39
|
-
<string>
|
40
|
-
<key>SupportedPlatformVariant</key>
|
41
|
-
<string>simulator</string>
|
35
|
+
<string>tvos</string>
|
42
36
|
</dict>
|
43
37
|
<dict>
|
44
38
|
<key>BinaryPath</key>
|
45
39
|
<string>libskunicode_libgrapheme.a</string>
|
46
40
|
<key>LibraryIdentifier</key>
|
47
|
-
<string>
|
41
|
+
<string>tvos-arm64_arm64e_x86_64-simulator</string>
|
48
42
|
<key>LibraryPath</key>
|
49
43
|
<string>libskunicode_libgrapheme.a</string>
|
50
44
|
<key>SupportedArchitectures</key>
|
51
45
|
<array>
|
52
46
|
<string>arm64</string>
|
53
47
|
<string>arm64e</string>
|
48
|
+
<string>x86_64</string>
|
54
49
|
</array>
|
55
50
|
<key>SupportedPlatform</key>
|
56
|
-
<string>
|
51
|
+
<string>tvos</string>
|
52
|
+
<key>SupportedPlatformVariant</key>
|
53
|
+
<string>simulator</string>
|
57
54
|
</dict>
|
58
55
|
<dict>
|
59
56
|
<key>BinaryPath</key>
|
@@ -74,16 +71,19 @@
|
|
74
71
|
<key>BinaryPath</key>
|
75
72
|
<string>libskunicode_libgrapheme.a</string>
|
76
73
|
<key>LibraryIdentifier</key>
|
77
|
-
<string>
|
74
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
78
75
|
<key>LibraryPath</key>
|
79
76
|
<string>libskunicode_libgrapheme.a</string>
|
80
77
|
<key>SupportedArchitectures</key>
|
81
78
|
<array>
|
82
79
|
<string>arm64</string>
|
83
80
|
<string>arm64e</string>
|
81
|
+
<string>x86_64</string>
|
84
82
|
</array>
|
85
83
|
<key>SupportedPlatform</key>
|
86
|
-
<string>
|
84
|
+
<string>ios</string>
|
85
|
+
<key>SupportedPlatformVariant</key>
|
86
|
+
<string>simulator</string>
|
87
87
|
</dict>
|
88
88
|
</array>
|
89
89
|
<key>CFBundlePackageType</key>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<key>BinaryPath</key>
|
9
9
|
<string>libsvg.a</string>
|
10
10
|
<key>LibraryIdentifier</key>
|
11
|
-
<string>
|
11
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
12
12
|
<key>LibraryPath</key>
|
13
13
|
<string>libsvg.a</string>
|
14
14
|
<key>SupportedArchitectures</key>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<string>x86_64</string>
|
19
19
|
</array>
|
20
20
|
<key>SupportedPlatform</key>
|
21
|
-
<string>
|
21
|
+
<string>ios</string>
|
22
22
|
<key>SupportedPlatformVariant</key>
|
23
23
|
<string>simulator</string>
|
24
24
|
</dict>
|
@@ -26,64 +26,64 @@
|
|
26
26
|
<key>BinaryPath</key>
|
27
27
|
<string>libsvg.a</string>
|
28
28
|
<key>LibraryIdentifier</key>
|
29
|
-
<string>
|
29
|
+
<string>tvos-arm64_arm64e_x86_64-simulator</string>
|
30
30
|
<key>LibraryPath</key>
|
31
31
|
<string>libsvg.a</string>
|
32
32
|
<key>SupportedArchitectures</key>
|
33
33
|
<array>
|
34
34
|
<string>arm64</string>
|
35
35
|
<string>arm64e</string>
|
36
|
+
<string>x86_64</string>
|
36
37
|
</array>
|
37
38
|
<key>SupportedPlatform</key>
|
38
|
-
<string>
|
39
|
+
<string>tvos</string>
|
40
|
+
<key>SupportedPlatformVariant</key>
|
41
|
+
<string>simulator</string>
|
39
42
|
</dict>
|
40
43
|
<dict>
|
41
44
|
<key>BinaryPath</key>
|
42
45
|
<string>libsvg.a</string>
|
43
46
|
<key>LibraryIdentifier</key>
|
44
|
-
<string>
|
47
|
+
<string>tvos-arm64_arm64e</string>
|
45
48
|
<key>LibraryPath</key>
|
46
49
|
<string>libsvg.a</string>
|
47
50
|
<key>SupportedArchitectures</key>
|
48
51
|
<array>
|
49
52
|
<string>arm64</string>
|
50
53
|
<string>arm64e</string>
|
51
|
-
<string>x86_64</string>
|
52
54
|
</array>
|
53
55
|
<key>SupportedPlatform</key>
|
54
|
-
<string>
|
55
|
-
<key>SupportedPlatformVariant</key>
|
56
|
-
<string>simulator</string>
|
56
|
+
<string>tvos</string>
|
57
57
|
</dict>
|
58
58
|
<dict>
|
59
59
|
<key>BinaryPath</key>
|
60
60
|
<string>libsvg.a</string>
|
61
61
|
<key>LibraryIdentifier</key>
|
62
|
-
<string>
|
62
|
+
<string>macos-arm64_x86_64</string>
|
63
63
|
<key>LibraryPath</key>
|
64
64
|
<string>libsvg.a</string>
|
65
65
|
<key>SupportedArchitectures</key>
|
66
66
|
<array>
|
67
67
|
<string>arm64</string>
|
68
|
-
<string>
|
68
|
+
<string>x86_64</string>
|
69
69
|
</array>
|
70
70
|
<key>SupportedPlatform</key>
|
71
|
-
<string>
|
71
|
+
<string>macos</string>
|
72
72
|
</dict>
|
73
73
|
<dict>
|
74
74
|
<key>BinaryPath</key>
|
75
75
|
<string>libsvg.a</string>
|
76
76
|
<key>LibraryIdentifier</key>
|
77
|
-
<string>
|
77
|
+
<string>ios-arm64_arm64e</string>
|
78
78
|
<key>LibraryPath</key>
|
79
79
|
<string>libsvg.a</string>
|
80
80
|
<key>SupportedArchitectures</key>
|
81
81
|
<array>
|
82
82
|
<string>arm64</string>
|
83
|
-
<string>
|
83
|
+
<string>arm64e</string>
|
84
84
|
</array>
|
85
85
|
<key>SupportedPlatform</key>
|
86
|
-
<string>
|
86
|
+
<string>ios</string>
|
87
87
|
</dict>
|
88
88
|
</array>
|
89
89
|
<key>CFBundlePackageType</key>
|
package/package.json
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
"setup-skia-web": "scripts/setup-canvaskit.js"
|
9
9
|
},
|
10
10
|
"title": "React Native Skia",
|
11
|
-
"version": "2.
|
11
|
+
"version": "2.2.0",
|
12
12
|
"description": "High-performance React Native Graphics using Skia",
|
13
13
|
"main": "lib/module/index.js",
|
14
14
|
"react-native": "src/index.ts",
|
@@ -99,11 +99,11 @@ Pod::Spec.new do |s|
|
|
99
99
|
]
|
100
100
|
|
101
101
|
graphite_exclusions = [
|
102
|
-
'cpp/rnskia/
|
103
|
-
'cpp/rnskia/
|
104
|
-
'cpp/rnskia/
|
105
|
-
'cpp/rnskia/
|
106
|
-
'cpp/rnskia/
|
102
|
+
'cpp/rnskia/RNDawnContext.h',
|
103
|
+
'cpp/rnskia/RNDawnUtils.h',
|
104
|
+
'cpp/rnskia/RNDawnWindowContext.h',
|
105
|
+
'cpp/rnskia/RNDawnWindowContext.cpp',
|
106
|
+
'cpp/rnskia/RNImageProvider.h'
|
107
107
|
]
|
108
108
|
s.exclude_files = graphite_exclusions unless use_graphite
|
109
109
|
|
@@ -19,6 +19,7 @@ import type {
|
|
19
19
|
SkColor,
|
20
20
|
SamplingOptions,
|
21
21
|
SkSkottieAnimation,
|
22
|
+
SkImageFilter,
|
22
23
|
} from "../../skia/types";
|
23
24
|
|
24
25
|
import type {
|
@@ -170,3 +171,7 @@ export interface BoxShadowProps {
|
|
170
171
|
color?: Color;
|
171
172
|
inner?: boolean;
|
172
173
|
}
|
174
|
+
|
175
|
+
export interface ImageFilterProps extends GroupProps {
|
176
|
+
filter: SkImageFilter;
|
177
|
+
}
|
package/src/renderer/Canvas.tsx
CHANGED
@@ -52,6 +52,7 @@ export interface CanvasProps extends ViewProps {
|
|
52
52
|
debug?: boolean;
|
53
53
|
opaque?: boolean;
|
54
54
|
onSize?: SharedValue<SkSize>;
|
55
|
+
colorSpace?: "p3" | "srgb";
|
55
56
|
ref?: React.Ref<CanvasRef>;
|
56
57
|
}
|
57
58
|
|
@@ -61,6 +62,7 @@ export const Canvas = ({
|
|
61
62
|
children,
|
62
63
|
onSize,
|
63
64
|
onLayout: _onLayout,
|
65
|
+
colorSpace = "p3",
|
64
66
|
ref,
|
65
67
|
...viewProps
|
66
68
|
}: CanvasProps) => {
|
@@ -109,6 +111,7 @@ export const Canvas = ({
|
|
109
111
|
nativeID={`${nativeId}`}
|
110
112
|
debug={debug}
|
111
113
|
opaque={opaque}
|
114
|
+
colorSpace={colorSpace}
|
112
115
|
onLayout={onLayout}
|
113
116
|
{...viewProps}
|
114
117
|
/>
|