@azzapp/react-native-snapshot-view 0.1.1 → 0.1.3
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/package.json +3 -7
- 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/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
|
@@ -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"
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azzapp/react-native-snapshot-view",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Snapshot view for react-native",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
|
+
"react-native": "src/index",
|
|
6
7
|
"main": "./lib/commonjs/index.js",
|
|
7
8
|
"module": "./lib/module/index.js",
|
|
8
9
|
"exports": {
|
|
@@ -186,14 +187,9 @@
|
|
|
186
187
|
"name": "RNSnapshotViewSpec",
|
|
187
188
|
"type": "all",
|
|
188
189
|
"jsSrcsDir": "src",
|
|
189
|
-
"outputDir": {
|
|
190
|
-
"ios": "ios/generated",
|
|
191
|
-
"android": "android/generated"
|
|
192
|
-
},
|
|
193
190
|
"android": {
|
|
194
191
|
"javaPackageName": "com.azzapp.rnsnapshotview"
|
|
195
|
-
}
|
|
196
|
-
"includesGeneratedCode": true
|
|
192
|
+
}
|
|
197
193
|
},
|
|
198
194
|
"create-react-native-library": {
|
|
199
195
|
"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
|
|
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
|