@azzapp/react-native-snapshot-view 0.1.2 → 0.1.4
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/{generated/java/com/azzapp/rnsnapshotview → app/build/generated/source/codegen/java/com/facebook/fbreact/specs}/NativeRNSnapshotViewSpec.java +1 -1
- package/{ios/generated → android/app/build/generated/source/codegen/jni/react/renderer/components}/RNSnapshotViewSpec/ComponentDescriptors.cpp +1 -1
- package/android/{generated → app/build/generated/source/codegen}/jni/react/renderer/components/RNSnapshotViewSpec/ComponentDescriptors.h +1 -1
- package/{ios/generated → android/app/build/generated/source/codegen/jni/react/renderer/components}/RNSnapshotViewSpec/EventEmitters.cpp +1 -1
- package/{ios/generated → android/app/build/generated/source/codegen/jni/react/renderer/components}/RNSnapshotViewSpec/Props.cpp +1 -1
- package/{ios/generated → android/app/build/generated/source/codegen/jni/react/renderer/components}/RNSnapshotViewSpec/ShadowNodes.cpp +1 -1
- package/android/{generated → app/build/generated/source/codegen}/jni/react/renderer/components/RNSnapshotViewSpec/ShadowNodes.h +3 -3
- package/{ios/generated → android/app/build/generated/source/codegen/jni/react/renderer/components}/RNSnapshotViewSpec/States.cpp +1 -1
- package/android/build.gradle +0 -3
- package/ios/RNSnapshotRenderer.mm +4 -4
- package/lib/commonjs/RNSnapshotRendererNativeComponent.js +2 -10
- package/lib/commonjs/RNSnapshotRendererNativeComponent.js.map +1 -1
- package/lib/module/RNSnapshotRendererNativeComponent.js +1 -9
- package/lib/module/RNSnapshotRendererNativeComponent.js.map +1 -1
- package/lib/typescript/src/NativeRNSnapshotView.d.ts.map +1 -0
- package/lib/typescript/src/RNSnapshotRendererNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/SnapshotRenderer.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +10 -39
- package/android/generated/jni/react/renderer/components/RNSnapshotViewSpec/ComponentDescriptors.cpp +0 -22
- package/android/generated/jni/react/renderer/components/RNSnapshotViewSpec/EventEmitters.cpp +0 -16
- package/android/generated/jni/react/renderer/components/RNSnapshotViewSpec/Props.cpp +0 -25
- package/android/generated/jni/react/renderer/components/RNSnapshotViewSpec/ShadowNodes.cpp +0 -17
- package/android/generated/jni/react/renderer/components/RNSnapshotViewSpec/States.cpp +0 -16
- package/ios/generated/RNSnapshotViewSpec/ComponentDescriptors.h +0 -24
- package/ios/generated/RNSnapshotViewSpec/EventEmitters.h +0 -23
- package/ios/generated/RNSnapshotViewSpec/Props.h +0 -27
- package/ios/generated/RNSnapshotViewSpec/RCTComponentViewHelpers.h +0 -20
- package/ios/generated/RNSnapshotViewSpec/RNSnapshotViewSpec-generated.mm +0 -36
- package/ios/generated/RNSnapshotViewSpec/RNSnapshotViewSpec.h +0 -54
- package/ios/generated/RNSnapshotViewSpec/ShadowNodes.h +0 -32
- package/ios/generated/RNSnapshotViewSpec/States.h +0 -29
- package/ios/generated/RNSnapshotViewSpecJSI-generated.cpp +0 -34
- package/ios/generated/RNSnapshotViewSpecJSI.h +0 -76
- package/lib/typescript/commonjs/src/NativeRNSnapshotView.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/RNSnapshotRendererNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/SnapshotRenderer.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
- package/lib/typescript/module/src/NativeRNSnapshotView.d.ts +0 -8
- package/lib/typescript/module/src/NativeRNSnapshotView.d.ts.map +0 -1
- package/lib/typescript/module/src/RNSnapshotRendererNativeComponent.d.ts +0 -7
- package/lib/typescript/module/src/RNSnapshotRendererNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/src/SnapshotRenderer.d.ts +0 -27
- package/lib/typescript/module/src/SnapshotRenderer.d.ts.map +0 -1
- package/lib/typescript/module/src/index.d.ts +0 -16
- package/lib/typescript/module/src/index.d.ts.map +0 -1
- /package/android/{generated → app/build/generated/source/codegen}/java/com/facebook/react/viewmanagers/RNSnapshotRendererManagerDelegate.java +0 -0
- /package/android/{generated → app/build/generated/source/codegen}/java/com/facebook/react/viewmanagers/RNSnapshotRendererManagerInterface.java +0 -0
- /package/android/{generated → app/build/generated/source/codegen}/jni/CMakeLists.txt +0 -0
- /package/android/{generated → app/build/generated/source/codegen}/jni/RNSnapshotViewSpec-generated.cpp +0 -0
- /package/android/{generated → app/build/generated/source/codegen}/jni/RNSnapshotViewSpec.h +0 -0
- /package/android/{generated → app/build/generated/source/codegen}/jni/react/renderer/components/RNSnapshotViewSpec/EventEmitters.h +0 -0
- /package/android/{generated → app/build/generated/source/codegen}/jni/react/renderer/components/RNSnapshotViewSpec/Props.h +0 -0
- /package/android/{generated → app/build/generated/source/codegen}/jni/react/renderer/components/RNSnapshotViewSpec/RNSnapshotViewSpecJSI-generated.cpp +0 -0
- /package/android/{generated → app/build/generated/source/codegen}/jni/react/renderer/components/RNSnapshotViewSpec/RNSnapshotViewSpecJSI.h +0 -0
- /package/android/{generated → app/build/generated/source/codegen}/jni/react/renderer/components/RNSnapshotViewSpec/States.h +0 -0
- /package/lib/{typescript/commonjs → commonjs}/package.json +0 -0
- /package/lib/{typescript/module → module}/package.json +0 -0
- /package/lib/typescript/{commonjs/src → src}/NativeRNSnapshotView.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/RNSnapshotRendererNativeComponent.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/SnapshotRenderer.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/index.d.ts +0 -0
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @generated by codegen project: GenerateComponentDescriptorCpp.js
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <react/renderer/components/RNSnapshotViewSpec/ComponentDescriptors.h>
|
|
12
12
|
#include <react/renderer/core/ConcreteComponentDescriptor.h>
|
|
13
13
|
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
|
|
14
14
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
#pragma once
|
|
12
12
|
|
|
13
|
-
#include
|
|
13
|
+
#include <react/renderer/components/RNSnapshotViewSpec/ShadowNodes.h>
|
|
14
14
|
#include <react/renderer/core/ConcreteComponentDescriptor.h>
|
|
15
15
|
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
|
|
16
16
|
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
#pragma once
|
|
12
12
|
|
|
13
|
-
#include
|
|
14
|
-
#include
|
|
15
|
-
#include
|
|
13
|
+
#include <react/renderer/components/RNSnapshotViewSpec/EventEmitters.h>
|
|
14
|
+
#include <react/renderer/components/RNSnapshotViewSpec/Props.h>
|
|
15
|
+
#include <react/renderer/components/RNSnapshotViewSpec/States.h>
|
|
16
16
|
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
|
|
17
17
|
#include <jsi/jsi.h>
|
|
18
18
|
|
package/android/build.gradle
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#ifdef RCT_NEW_ARCH_ENABLED
|
|
2
2
|
#import "RNSnapshotRenderer.h"
|
|
3
3
|
|
|
4
|
-
#import
|
|
5
|
-
#import
|
|
6
|
-
#import
|
|
7
|
-
#import
|
|
4
|
+
#import <react/renderer/components/RNSnapshotViewSpec/ComponentDescriptors.h>
|
|
5
|
+
#import <react/renderer/components/RNSnapshotViewSpec/EventEmitters.h>
|
|
6
|
+
#import <react/renderer/components/RNSnapshotViewSpec/Props.h>
|
|
7
|
+
#import <react/renderer/components/RNSnapshotViewSpec/RCTComponentViewHelpers.h>
|
|
8
8
|
|
|
9
9
|
#import "RCTFabricComponentsPlugins.h"
|
|
10
10
|
#import "RNSnapshotView.h"
|
|
@@ -3,16 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
let nativeComponentName = 'RNSnapshotRenderer';
|
|
11
|
-
const __INTERNAL_VIEW_CONFIG = exports.__INTERNAL_VIEW_CONFIG = {
|
|
12
|
-
uiViewClassName: 'RNSnapshotRenderer',
|
|
13
|
-
validAttributes: {
|
|
14
|
-
snapshotID: true
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
var _default = exports.default = NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);
|
|
9
|
+
var _default = exports.default = (0, _codegenNativeComponent.default)('RNSnapshotRenderer');
|
|
18
10
|
//# sourceMappingURL=RNSnapshotRendererNativeComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","e","__esModule","default","
|
|
1
|
+
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","e","__esModule","default","_default","exports","codegenNativeComponent"],"sourceRoot":"../../src","sources":["RNSnapshotRendererNativeComponent.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAO9E,IAAAG,+BAAsB,EAAc,oBAAoB,CAAC","ignoreList":[]}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
4
|
-
|
|
5
|
-
let nativeComponentName = 'RNSnapshotRenderer';
|
|
6
|
-
export const __INTERNAL_VIEW_CONFIG = {
|
|
7
|
-
uiViewClassName: 'RNSnapshotRenderer',
|
|
8
|
-
validAttributes: {
|
|
9
|
-
snapshotID: true
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
export default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);
|
|
4
|
+
export default codegenNativeComponent('RNSnapshotRenderer');
|
|
13
5
|
//# sourceMappingURL=RNSnapshotRendererNativeComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["codegenNativeComponent"
|
|
1
|
+
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../src","sources":["RNSnapshotRendererNativeComponent.ts"],"mappings":";;AAAA,OAAOA,sBAAsB,MAAM,yDAAyD;AAO5F,eAAeA,sBAAsB,CAAc,oBAAoB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeRNSnapshotView.d.ts","sourceRoot":"","sources":["../../../src/NativeRNSnapshotView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACjD,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C;;AAED,wBAAwE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RNSnapshotRendererNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/RNSnapshotRendererNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;;AAED,wBAAyE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnapshotRenderer.d.ts","sourceRoot":"","sources":["../../../src/SnapshotRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAChE;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;;IAVA;;;OAGG;gBACS,MAAM,GAAG,IAAI;IACzB;;;OAGG;0BACmB,OAAO;;AA4B/B,wBAA4C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,iBAAiB,EACb,IAAI,GACJ,MAAM,GACN,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,GACzB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAC5B,OAAO,CAAC,MAAM,CAAC,CAMjB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEjE;AAED,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azzapp/react-native-snapshot-view",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Snapshot view for react-native",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"import": {
|
|
11
|
-
"types": "./lib/typescript/module/src/index.d.ts",
|
|
12
|
-
"default": "./lib/module/index.js"
|
|
13
|
-
},
|
|
14
|
-
"require": {
|
|
15
|
-
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
16
|
-
"default": "./lib/commonjs/index.js"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
5
|
+
"main": "lib/commonjs/index",
|
|
6
|
+
"module": "lib/module/index",
|
|
7
|
+
"types": "lib/typescript/src/index.d.ts",
|
|
8
|
+
"react-native": "src/index",
|
|
9
|
+
"source": "src/index",
|
|
20
10
|
"files": [
|
|
21
11
|
"src",
|
|
22
12
|
"lib",
|
|
@@ -160,26 +150,12 @@
|
|
|
160
150
|
"source": "src",
|
|
161
151
|
"output": "lib",
|
|
162
152
|
"targets": [
|
|
163
|
-
"
|
|
164
|
-
|
|
165
|
-
"commonjs",
|
|
166
|
-
{
|
|
167
|
-
"esm": true,
|
|
168
|
-
"configFile": "./babel.config.js"
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
[
|
|
172
|
-
"module",
|
|
173
|
-
{
|
|
174
|
-
"esm": true,
|
|
175
|
-
"configFile": "./babel.config.module.js"
|
|
176
|
-
}
|
|
177
|
-
],
|
|
153
|
+
"commonjs",
|
|
154
|
+
"module",
|
|
178
155
|
[
|
|
179
156
|
"typescript",
|
|
180
157
|
{
|
|
181
|
-
"project": "tsconfig.build.json"
|
|
182
|
-
"esm": true
|
|
158
|
+
"project": "tsconfig.build.json"
|
|
183
159
|
}
|
|
184
160
|
]
|
|
185
161
|
]
|
|
@@ -188,14 +164,9 @@
|
|
|
188
164
|
"name": "RNSnapshotViewSpec",
|
|
189
165
|
"type": "all",
|
|
190
166
|
"jsSrcsDir": "src",
|
|
191
|
-
"outputDir": {
|
|
192
|
-
"ios": "ios/generated",
|
|
193
|
-
"android": "android/generated"
|
|
194
|
-
},
|
|
195
167
|
"android": {
|
|
196
168
|
"javaPackageName": "com.azzapp.rnsnapshotview"
|
|
197
|
-
}
|
|
198
|
-
"includesGeneratedCode": true
|
|
169
|
+
}
|
|
199
170
|
},
|
|
200
171
|
"create-react-native-library": {
|
|
201
172
|
"type": "view-mixed",
|
package/android/generated/jni/react/renderer/components/RNSnapshotViewSpec/ComponentDescriptors.cpp
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateComponentDescriptorCpp.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#include "ComponentDescriptors.h"
|
|
12
|
-
#include <react/renderer/core/ConcreteComponentDescriptor.h>
|
|
13
|
-
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
|
|
14
|
-
|
|
15
|
-
namespace facebook::react {
|
|
16
|
-
|
|
17
|
-
void RNSnapshotViewSpec_registerComponentDescriptorsFromCodegen(
|
|
18
|
-
std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) {
|
|
19
|
-
registry->add(concreteComponentDescriptorProvider<RNSnapshotRendererComponentDescriptor>());
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
} // namespace facebook::react
|
package/android/generated/jni/react/renderer/components/RNSnapshotViewSpec/EventEmitters.cpp
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateEventEmitterCpp.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#include "EventEmitters.h"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
namespace facebook::react {
|
|
15
|
-
|
|
16
|
-
} // namespace facebook::react
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GeneratePropsCpp.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#include "Props.h"
|
|
12
|
-
#include <react/renderer/core/PropsParserContext.h>
|
|
13
|
-
#include <react/renderer/core/propsConversions.h>
|
|
14
|
-
|
|
15
|
-
namespace facebook::react {
|
|
16
|
-
|
|
17
|
-
RNSnapshotRendererProps::RNSnapshotRendererProps(
|
|
18
|
-
const PropsParserContext &context,
|
|
19
|
-
const RNSnapshotRendererProps &sourceProps,
|
|
20
|
-
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
21
|
-
|
|
22
|
-
snapshotID(convertRawProp(context, rawProps, "snapshotID", sourceProps.snapshotID, {}))
|
|
23
|
-
{}
|
|
24
|
-
|
|
25
|
-
} // namespace facebook::react
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateShadowNodeCpp.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#include "ShadowNodes.h"
|
|
12
|
-
|
|
13
|
-
namespace facebook::react {
|
|
14
|
-
|
|
15
|
-
extern const char RNSnapshotRendererComponentName[] = "RNSnapshotRenderer";
|
|
16
|
-
|
|
17
|
-
} // namespace facebook::react
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateStateCpp.js
|
|
9
|
-
*/
|
|
10
|
-
#include "States.h"
|
|
11
|
-
|
|
12
|
-
namespace facebook::react {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} // namespace facebook::react
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateComponentDescriptorH.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#pragma once
|
|
12
|
-
|
|
13
|
-
#include "ShadowNodes.h"
|
|
14
|
-
#include <react/renderer/core/ConcreteComponentDescriptor.h>
|
|
15
|
-
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
|
|
16
|
-
|
|
17
|
-
namespace facebook::react {
|
|
18
|
-
|
|
19
|
-
using RNSnapshotRendererComponentDescriptor = ConcreteComponentDescriptor<RNSnapshotRendererShadowNode>;
|
|
20
|
-
|
|
21
|
-
void RNSnapshotViewSpec_registerComponentDescriptorsFromCodegen(
|
|
22
|
-
std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
|
|
23
|
-
|
|
24
|
-
} // namespace facebook::react
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateEventEmitterH.js
|
|
9
|
-
*/
|
|
10
|
-
#pragma once
|
|
11
|
-
|
|
12
|
-
#include <react/renderer/components/view/ViewEventEmitter.h>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
namespace facebook::react {
|
|
16
|
-
class RNSnapshotRendererEventEmitter : public ViewEventEmitter {
|
|
17
|
-
public:
|
|
18
|
-
using ViewEventEmitter::ViewEventEmitter;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
} // namespace facebook::react
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GeneratePropsH.js
|
|
9
|
-
*/
|
|
10
|
-
#pragma once
|
|
11
|
-
|
|
12
|
-
#include <react/renderer/components/view/ViewProps.h>
|
|
13
|
-
#include <react/renderer/core/PropsParserContext.h>
|
|
14
|
-
|
|
15
|
-
namespace facebook::react {
|
|
16
|
-
|
|
17
|
-
class RNSnapshotRendererProps final : public ViewProps {
|
|
18
|
-
public:
|
|
19
|
-
RNSnapshotRendererProps() = default;
|
|
20
|
-
RNSnapshotRendererProps(const PropsParserContext& context, const RNSnapshotRendererProps &sourceProps, const RawProps &rawProps);
|
|
21
|
-
|
|
22
|
-
#pragma mark - Props
|
|
23
|
-
|
|
24
|
-
std::string snapshotID{};
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
} // namespace facebook::react
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
-
*
|
|
4
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
-
* once the code is regenerated.
|
|
6
|
-
*
|
|
7
|
-
* @generated by codegen project: GenerateComponentHObjCpp.js
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
#import <Foundation/Foundation.h>
|
|
11
|
-
#import <React/RCTDefines.h>
|
|
12
|
-
#import <React/RCTLog.h>
|
|
13
|
-
|
|
14
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
15
|
-
|
|
16
|
-
@protocol RCTRNSnapshotRendererViewProtocol <NSObject>
|
|
17
|
-
|
|
18
|
-
@end
|
|
19
|
-
|
|
20
|
-
NS_ASSUME_NONNULL_END
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
-
*
|
|
4
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
-
* once the code is regenerated.
|
|
6
|
-
*
|
|
7
|
-
* @generated by codegen project: GenerateModuleObjCpp
|
|
8
|
-
*
|
|
9
|
-
* We create an umbrella header (and corresponding implementation) here since
|
|
10
|
-
* Cxx compilation in BUCK has a limitation: source-code producing genrule()s
|
|
11
|
-
* must have a single output. More files => more genrule()s => slower builds.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
#import "RNSnapshotViewSpec.h"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
namespace facebook::react {
|
|
18
|
-
|
|
19
|
-
static facebook::jsi::Value __hostFunction_NativeRNSnapshotViewSpecJSI_captureSnapshot(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
20
|
-
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "captureSnapshot", @selector(captureSnapshot:resolve:reject:), args, count);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
static facebook::jsi::Value __hostFunction_NativeRNSnapshotViewSpecJSI_releaseSnapshot(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
24
|
-
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "releaseSnapshot", @selector(releaseSnapshot:resolve:reject:), args, count);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
NativeRNSnapshotViewSpecJSI::NativeRNSnapshotViewSpecJSI(const ObjCTurboModule::InitParams ¶ms)
|
|
28
|
-
: ObjCTurboModule(params) {
|
|
29
|
-
|
|
30
|
-
methodMap_["captureSnapshot"] = MethodMetadata {1, __hostFunction_NativeRNSnapshotViewSpecJSI_captureSnapshot};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
methodMap_["releaseSnapshot"] = MethodMetadata {1, __hostFunction_NativeRNSnapshotViewSpecJSI_releaseSnapshot};
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
} // namespace facebook::react
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
-
*
|
|
4
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
-
* once the code is regenerated.
|
|
6
|
-
*
|
|
7
|
-
* @generated by codegen project: GenerateModuleObjCpp
|
|
8
|
-
*
|
|
9
|
-
* We create an umbrella header (and corresponding implementation) here since
|
|
10
|
-
* Cxx compilation in BUCK has a limitation: source-code producing genrule()s
|
|
11
|
-
* must have a single output. More files => more genrule()s => slower builds.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
#ifndef __cplusplus
|
|
15
|
-
#error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
|
|
16
|
-
#endif
|
|
17
|
-
|
|
18
|
-
// Avoid multiple includes of RNSnapshotViewSpec symbols
|
|
19
|
-
#ifndef RNSnapshotViewSpec_H
|
|
20
|
-
#define RNSnapshotViewSpec_H
|
|
21
|
-
|
|
22
|
-
#import <Foundation/Foundation.h>
|
|
23
|
-
#import <RCTRequired/RCTRequired.h>
|
|
24
|
-
#import <RCTTypeSafety/RCTConvertHelpers.h>
|
|
25
|
-
#import <RCTTypeSafety/RCTTypedModuleConstants.h>
|
|
26
|
-
#import <React/RCTBridgeModule.h>
|
|
27
|
-
#import <React/RCTCxxConvert.h>
|
|
28
|
-
#import <React/RCTManagedPointer.h>
|
|
29
|
-
#import <ReactCommon/RCTTurboModule.h>
|
|
30
|
-
#import <optional>
|
|
31
|
-
#import <vector>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
@protocol NativeRNSnapshotViewSpec <RCTBridgeModule, RCTTurboModule>
|
|
35
|
-
|
|
36
|
-
- (void)captureSnapshot:(double)target
|
|
37
|
-
resolve:(RCTPromiseResolveBlock)resolve
|
|
38
|
-
reject:(RCTPromiseRejectBlock)reject;
|
|
39
|
-
- (void)releaseSnapshot:(NSString *)a
|
|
40
|
-
resolve:(RCTPromiseResolveBlock)resolve
|
|
41
|
-
reject:(RCTPromiseRejectBlock)reject;
|
|
42
|
-
|
|
43
|
-
@end
|
|
44
|
-
namespace facebook::react {
|
|
45
|
-
/**
|
|
46
|
-
* ObjC++ class for module 'NativeRNSnapshotView'
|
|
47
|
-
*/
|
|
48
|
-
class JSI_EXPORT NativeRNSnapshotViewSpecJSI : public ObjCTurboModule {
|
|
49
|
-
public:
|
|
50
|
-
NativeRNSnapshotViewSpecJSI(const ObjCTurboModule::InitParams ¶ms);
|
|
51
|
-
};
|
|
52
|
-
} // namespace facebook::react
|
|
53
|
-
|
|
54
|
-
#endif // RNSnapshotViewSpec_H
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateShadowNodeH.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#pragma once
|
|
12
|
-
|
|
13
|
-
#include "EventEmitters.h"
|
|
14
|
-
#include "Props.h"
|
|
15
|
-
#include "States.h"
|
|
16
|
-
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
|
|
17
|
-
#include <jsi/jsi.h>
|
|
18
|
-
|
|
19
|
-
namespace facebook::react {
|
|
20
|
-
|
|
21
|
-
JSI_EXPORT extern const char RNSnapshotRendererComponentName[];
|
|
22
|
-
|
|
23
|
-
/*
|
|
24
|
-
* `ShadowNode` for <RNSnapshotRenderer> component.
|
|
25
|
-
*/
|
|
26
|
-
using RNSnapshotRendererShadowNode = ConcreteViewShadowNode<
|
|
27
|
-
RNSnapshotRendererComponentName,
|
|
28
|
-
RNSnapshotRendererProps,
|
|
29
|
-
RNSnapshotRendererEventEmitter,
|
|
30
|
-
RNSnapshotRendererState>;
|
|
31
|
-
|
|
32
|
-
} // namespace facebook::react
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
-
*
|
|
4
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
-
* once the code is regenerated.
|
|
6
|
-
*
|
|
7
|
-
* @generated by codegen project: GenerateStateH.js
|
|
8
|
-
*/
|
|
9
|
-
#pragma once
|
|
10
|
-
|
|
11
|
-
#ifdef ANDROID
|
|
12
|
-
#include <folly/dynamic.h>
|
|
13
|
-
#endif
|
|
14
|
-
|
|
15
|
-
namespace facebook::react {
|
|
16
|
-
|
|
17
|
-
class RNSnapshotRendererState {
|
|
18
|
-
public:
|
|
19
|
-
RNSnapshotRendererState() = default;
|
|
20
|
-
|
|
21
|
-
#ifdef ANDROID
|
|
22
|
-
RNSnapshotRendererState(RNSnapshotRendererState const &previousState, folly::dynamic data){};
|
|
23
|
-
folly::dynamic getDynamic() const {
|
|
24
|
-
return {};
|
|
25
|
-
};
|
|
26
|
-
#endif
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
} // namespace facebook::react
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
-
*
|
|
4
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
-
* once the code is regenerated.
|
|
6
|
-
*
|
|
7
|
-
* @generated by codegen project: GenerateModuleCpp.js
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
#include "RNSnapshotViewSpecJSI.h"
|
|
11
|
-
|
|
12
|
-
namespace facebook::react {
|
|
13
|
-
|
|
14
|
-
static jsi::Value __hostFunction_NativeRNSnapshotViewCxxSpecJSI_captureSnapshot(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
15
|
-
return static_cast<NativeRNSnapshotViewCxxSpecJSI *>(&turboModule)->captureSnapshot(
|
|
16
|
-
rt,
|
|
17
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
static jsi::Value __hostFunction_NativeRNSnapshotViewCxxSpecJSI_releaseSnapshot(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
21
|
-
return static_cast<NativeRNSnapshotViewCxxSpecJSI *>(&turboModule)->releaseSnapshot(
|
|
22
|
-
rt,
|
|
23
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
NativeRNSnapshotViewCxxSpecJSI::NativeRNSnapshotViewCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
|
|
28
|
-
: TurboModule("RNSnapshotView", jsInvoker) {
|
|
29
|
-
methodMap_["captureSnapshot"] = MethodMetadata {1, __hostFunction_NativeRNSnapshotViewCxxSpecJSI_captureSnapshot};
|
|
30
|
-
methodMap_["releaseSnapshot"] = MethodMetadata {1, __hostFunction_NativeRNSnapshotViewCxxSpecJSI_releaseSnapshot};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} // namespace facebook::react
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
-
*
|
|
4
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
-
* once the code is regenerated.
|
|
6
|
-
*
|
|
7
|
-
* @generated by codegen project: GenerateModuleH.js
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
#pragma once
|
|
11
|
-
|
|
12
|
-
#include <ReactCommon/TurboModule.h>
|
|
13
|
-
#include <react/bridging/Bridging.h>
|
|
14
|
-
|
|
15
|
-
namespace facebook::react {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class JSI_EXPORT NativeRNSnapshotViewCxxSpecJSI : public TurboModule {
|
|
19
|
-
protected:
|
|
20
|
-
NativeRNSnapshotViewCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
21
|
-
|
|
22
|
-
public:
|
|
23
|
-
virtual jsi::Value captureSnapshot(jsi::Runtime &rt, double target) = 0;
|
|
24
|
-
virtual jsi::Value releaseSnapshot(jsi::Runtime &rt, jsi::String a) = 0;
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
template <typename T>
|
|
29
|
-
class JSI_EXPORT NativeRNSnapshotViewCxxSpec : public TurboModule {
|
|
30
|
-
public:
|
|
31
|
-
jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
32
|
-
return delegate_.get(rt, propName);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
static constexpr std::string_view kModuleName = "RNSnapshotView";
|
|
36
|
-
|
|
37
|
-
protected:
|
|
38
|
-
NativeRNSnapshotViewCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
39
|
-
: TurboModule(std::string{NativeRNSnapshotViewCxxSpec::kModuleName}, jsInvoker),
|
|
40
|
-
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
private:
|
|
44
|
-
class Delegate : public NativeRNSnapshotViewCxxSpecJSI {
|
|
45
|
-
public:
|
|
46
|
-
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
47
|
-
NativeRNSnapshotViewCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
jsi::Value captureSnapshot(jsi::Runtime &rt, double target) override {
|
|
52
|
-
static_assert(
|
|
53
|
-
bridging::getParameterCount(&T::captureSnapshot) == 2,
|
|
54
|
-
"Expected captureSnapshot(...) to have 2 parameters");
|
|
55
|
-
|
|
56
|
-
return bridging::callFromJs<jsi::Value>(
|
|
57
|
-
rt, &T::captureSnapshot, jsInvoker_, instance_, std::move(target));
|
|
58
|
-
}
|
|
59
|
-
jsi::Value releaseSnapshot(jsi::Runtime &rt, jsi::String a) override {
|
|
60
|
-
static_assert(
|
|
61
|
-
bridging::getParameterCount(&T::releaseSnapshot) == 2,
|
|
62
|
-
"Expected releaseSnapshot(...) to have 2 parameters");
|
|
63
|
-
|
|
64
|
-
return bridging::callFromJs<jsi::Value>(
|
|
65
|
-
rt, &T::releaseSnapshot, jsInvoker_, instance_, std::move(a));
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
private:
|
|
69
|
-
friend class NativeRNSnapshotViewCxxSpec;
|
|
70
|
-
T *instance_;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
Delegate delegate_;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
} // namespace facebook::react
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NativeRNSnapshotView.d.ts","sourceRoot":"","sources":["../../../../src/NativeRNSnapshotView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACjD,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C;;AAED,wBAAwE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RNSnapshotRendererNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/RNSnapshotRendererNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;;AAED,wBAAyE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SnapshotRenderer.d.ts","sourceRoot":"","sources":["../../../../src/SnapshotRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAChE;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;;IAVA;;;OAGG;gBACS,MAAM,GAAG,IAAI;IACzB;;;OAGG;0BACmB,OAAO;;AA4B/B,wBAA4C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,iBAAiB,EACb,IAAI,GACJ,MAAM,GACN,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,GACzB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAC5B,OAAO,CAAC,MAAM,CAAC,CAMjB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEjE;AAED,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { TurboModule } from 'react-native';
|
|
2
|
-
export interface Spec extends TurboModule {
|
|
3
|
-
captureSnapshot(target: number): Promise<string>;
|
|
4
|
-
releaseSnapshot(a: string): Promise<void>;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: Spec;
|
|
7
|
-
export default _default;
|
|
8
|
-
//# sourceMappingURL=NativeRNSnapshotView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NativeRNSnapshotView.d.ts","sourceRoot":"","sources":["../../../../src/NativeRNSnapshotView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACjD,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C;;AAED,wBAAwE"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ViewProps } from 'react-native';
|
|
2
|
-
interface NativeProps extends ViewProps {
|
|
3
|
-
snapshotID?: string | null;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
|
6
|
-
export default _default;
|
|
7
|
-
//# sourceMappingURL=RNSnapshotRendererNativeComponent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RNSnapshotRendererNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/RNSnapshotRendererNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;;AAED,wBAAyE"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { View, ViewProps } from 'react-native';
|
|
2
|
-
export type SnapshotRendererProps = Omit<ViewProps, 'children'> & {
|
|
3
|
-
/**
|
|
4
|
-
* The ID of the snapshot to render.
|
|
5
|
-
* This ID is returned by the `captureSnapshot` function.
|
|
6
|
-
*/
|
|
7
|
-
snapshotID: string | null;
|
|
8
|
-
/**
|
|
9
|
-
* Whether to automatically release the snapshot when no longer displayed.
|
|
10
|
-
* @default true
|
|
11
|
-
*/
|
|
12
|
-
autoReleaseSnapshot?: boolean;
|
|
13
|
-
};
|
|
14
|
-
declare const _default: import("react").ForwardRefExoticComponent<Omit<ViewProps, "children"> & {
|
|
15
|
-
/**
|
|
16
|
-
* The ID of the snapshot to render.
|
|
17
|
-
* This ID is returned by the `captureSnapshot` function.
|
|
18
|
-
*/
|
|
19
|
-
snapshotID: string | null;
|
|
20
|
-
/**
|
|
21
|
-
* Whether to automatically release the snapshot when no longer displayed.
|
|
22
|
-
* @default true
|
|
23
|
-
*/
|
|
24
|
-
autoReleaseSnapshot?: boolean;
|
|
25
|
-
} & import("react").RefAttributes<View>>;
|
|
26
|
-
export default _default;
|
|
27
|
-
//# sourceMappingURL=SnapshotRenderer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SnapshotRenderer.d.ts","sourceRoot":"","sources":["../../../../src/SnapshotRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAChE;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;;IAVA;;;OAGG;gBACS,MAAM,GAAG,IAAI;IACzB;;;OAGG;0BACmB,OAAO;;AA4B/B,wBAA4C"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Captures a snapshot of a view. The snapshot can be rendered using the `SnapshotRenderer` component.
|
|
3
|
-
*
|
|
4
|
-
* @param componentOrHandle The view to capture. Can be a view ref or a native component handle.
|
|
5
|
-
* @returns A promise that resolves to the ID of the snapshot. The snapshot should be released when no longer needed.
|
|
6
|
-
*/
|
|
7
|
-
export declare function captureSnapshot(componentOrHandle: null | number | React.Component<any, any> | React.ComponentClass<any>): Promise<string>;
|
|
8
|
-
/**
|
|
9
|
-
* Releases a snapshot.
|
|
10
|
-
*
|
|
11
|
-
* @param snapshotID The ID of the snapshot to release.
|
|
12
|
-
* @returns A promise that resolves when the snapshot is released.
|
|
13
|
-
*/
|
|
14
|
-
export declare function releaseSnapshot(snapshotID: string): Promise<void>;
|
|
15
|
-
export { default as SnapshotRenderer } from './SnapshotRenderer';
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,iBAAiB,EACb,IAAI,GACJ,MAAM,GACN,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,GACzB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAC5B,OAAO,CAAC,MAAM,CAAC,CAMjB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEjE;AAED,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|