@react-native-vector-icons/common 11.0.0-alpha.1 → 11.0.0-alpha.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.
Files changed (40) hide show
  1. package/package.json +5 -2
  2. package/react-native-vector-icons.podspec +5 -54
  3. package/scripts/copy-fonts.sh +56 -0
  4. package/android/generated/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeVectorIconsSpec.java +0 -42
  5. package/android/generated/android/app/build/generated/source/codegen/jni/CMakeLists.txt +0 -49
  6. package/android/generated/android/app/build/generated/source/codegen/jni/RNVectorIconsSpec-generated.cpp +0 -38
  7. package/android/generated/android/app/build/generated/source/codegen/jni/RNVectorIconsSpec.h +0 -31
  8. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/ComponentDescriptors.cpp +0 -22
  9. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/ComponentDescriptors.h +0 -24
  10. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/EventEmitters.cpp +0 -16
  11. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/EventEmitters.h +0 -17
  12. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/Props.cpp +0 -19
  13. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/Props.h +0 -18
  14. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/RNVectorIconsSpecJSI-generated.cpp +0 -40
  15. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/RNVectorIconsSpecJSI.h +0 -76
  16. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/ShadowNodes.cpp +0 -17
  17. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/ShadowNodes.h +0 -23
  18. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/States.cpp +0 -16
  19. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNVectorIconsSpec/States.h +0 -19
  20. package/ios/generated/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec-generated.mm +0 -1881
  21. package/ios/generated/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h +0 -2321
  22. package/ios/generated/build/generated/ios/FBReactNativeSpecJSI-generated.cpp +0 -2785
  23. package/ios/generated/build/generated/ios/FBReactNativeSpecJSI.h +0 -7511
  24. package/ios/generated/build/generated/ios/RCTModulesConformingToProtocolsProvider.h +0 -18
  25. package/ios/generated/build/generated/ios/RCTModulesConformingToProtocolsProvider.mm +0 -33
  26. package/ios/generated/build/generated/ios/RNVectorIconsSpec/RNVectorIconsSpec-generated.mm +0 -36
  27. package/ios/generated/build/generated/ios/RNVectorIconsSpec/RNVectorIconsSpec.h +0 -58
  28. package/ios/generated/build/generated/ios/RNVectorIconsSpecJSI-generated.cpp +0 -40
  29. package/ios/generated/build/generated/ios/RNVectorIconsSpecJSI.h +0 -76
  30. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/ComponentDescriptors.cpp +0 -22
  31. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/ComponentDescriptors.h +0 -24
  32. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/EventEmitters.cpp +0 -16
  33. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/EventEmitters.h +0 -17
  34. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/Props.cpp +0 -19
  35. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/Props.h +0 -18
  36. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/RCTComponentViewHelpers.h +0 -18
  37. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/ShadowNodes.cpp +0 -17
  38. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/ShadowNodes.h +0 -23
  39. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/States.cpp +0 -16
  40. package/ios/generated/build/generated/ios/react/renderer/components/RNVectorIconsSpec/States.h +0 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-vector-icons/common",
3
- "version": "11.0.0-alpha.1",
3
+ "version": "11.0.0-alpha.3",
4
4
  "description": "Customizable Icons for React Native with support for image source and full styling.",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -19,6 +19,7 @@
19
19
  }
20
20
  },
21
21
  "files": [
22
+ "scripts",
22
23
  "src",
23
24
  "lib",
24
25
  "android",
@@ -26,6 +27,8 @@
26
27
  "cpp",
27
28
  "*.podspec",
28
29
  "react-native.config.js",
30
+ "!ios/generated",
31
+ "!android/generated",
29
32
  "!ios/build",
30
33
  "!android/build",
31
34
  "!android/gradle",
@@ -158,5 +161,5 @@
158
161
  "languages": "kotlin-objc",
159
162
  "version": "0.41.2"
160
163
  },
161
- "gitHead": "342821d7dd8f6bc219412b3f837af4f6b449cff6"
164
+ "gitHead": "e9f80997706ccf4aa535c4bc327346e7b3b09e82"
162
165
  }
@@ -26,7 +26,7 @@ Pod::Spec.new do |s|
26
26
  # Don't install the dependencies when we run `pod install` in the old architecture.
27
27
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
28
28
  s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
29
- s.pod_target_xcconfig = {
29
+ s.pod_target_xcconfig = {
30
30
  "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
31
31
  "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
32
32
  "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
@@ -41,61 +41,12 @@ Pod::Spec.new do |s|
41
41
 
42
42
  s.script_phase = {
43
43
  :name => 'Copy Fonts',
44
- :script => "
44
+ :script => <<~SCRIPT
45
45
  set -e
46
46
 
47
- # This script borrows from the standard resource copy script https://gist.github.com/vonovak/d8f1a37804438f05bae22be1e8cd53c1
48
- # We need two key bits of information
49
- # Project Root - Where the package.json for the RN app lives
50
- # Xcode Build Dir to copy the fonts into - We look for the directory that ends in .app
47
+ WITH_ENVIRONMENT="$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh"
51
48
 
52
- echo \"(RNVI) START_COPY_FONTS\"
53
-
54
- echo \"(RNVI) PWD: $(pwd)\"
55
-
56
- #############
57
- # Find the fonts we need to copy
58
- #############
59
-
60
- # Assume the project root is always two directories above the POD_ROOT
61
- echo \"(RNVI) PODS_ROOT: $PODS_ROOT\"
62
- PROJECT_ROOT=\"${PODS_ROOT}/../..\"
63
- echo \"(RNVI) PROJECT_ROOT: $PROJECT_ROOT\"
64
-
65
- # Items we need to copy for rsync
66
- RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
67
-
68
- node \"${PODS_TARGET_SRCROOT}/lib/commonjs/scripts/getFonts.js\" \"$PROJECT_ROOT\"/package.json > \"$RESOURCES_TO_COPY\"
69
-
70
- #############
71
- # Find the destination we copy to
72
- #############
73
-
74
- echo \"(RNVI) PODS_CONFIGURATION_BUILD_DIR: $PODS_CONFIGURATION_BUILD_DIR\"
75
- XCODE_DIR=$(ls -d \"$PODS_CONFIGURATION_BUILD_DIR\"/*.app)
76
- echo \"(RNVI) XCODE_DIR: $XCODE_DIR\"
77
- DEST_DIR=\"${XCODE_DIR}\"
78
- echo \"(RNVI) DEST_DIR: $DEST_DIR\"
79
- echo I $INSTALL_DIR
80
- mkdir -p \"$DEST_DIR\"
81
-
82
- #############
83
- # Copy the fonts
84
- #############
85
- echo \"(RNVI) Copying the following files to $DEST_DIR\"
86
- cat \"$RESOURCES_TO_COPY\" | sed 's/^/(RNVI) /'
87
-
88
- # NOTE: Should we add --delete and remove old fonts automagically? NOt doing it yet as it feels risky
89
- rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from=\"$RESOURCES_TO_COPY\" / \"$DEST_DIR\"
90
- # TODO: How do we test this is right?
91
- if [[ \"${ACTION}\" == \"install\" ]] && [[ \"${SKIP_INSTALL}\" == \"NO\" ]]; then
92
- mkdir -p \"${INSTALL_DIR}/react-native-vector-icons\"
93
- rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from=\"$RESOURCES_TO_COPY\" / \"${INSTALL_DIR}/react-native-vector-icons\"
94
- fi
95
-
96
- rm -f \"$RESOURCES_TO_COPY\"
97
-
98
- echo \"(RNVI) END:RNVI_COPY_FONTS\"
99
- ",
49
+ /bin/sh -c "\"$WITH_ENVIRONMENT\" \"${PODS_TARGET_SRCROOT}/scripts/copy-fonts.sh\""
50
+ SCRIPT
100
51
  }
101
52
  end
@@ -0,0 +1,56 @@
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ # This script borrows from the standard resource copy script https://gist.github.com/vonovak/d8f1a37804438f05bae22be1e8cd53c1
6
+ # We need two key bits of information
7
+ # Project Root - Where the package.json for the RN app lives
8
+ # Xcode Build Dir to copy the fonts into - We look for the directory that ends in .app
9
+
10
+ echo "(RNVI) START_COPY_FONTS"
11
+
12
+ echo "(RNVI) PWD: $(pwd)"
13
+
14
+ #############
15
+ # Find the fonts we need to copy
16
+ #############
17
+
18
+ # Assume the project root is always two directories above the POD_ROOT
19
+ echo "(RNVI) PODS_ROOT: $PODS_ROOT"
20
+ PROJECT_ROOT="${PODS_ROOT}/../.."
21
+ echo "(RNVI) PROJECT_ROOT: $PROJECT_ROOT"
22
+
23
+ # Items we need to copy for rsync
24
+ RESOURCES_TO_COPY="${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt"
25
+
26
+ "$NODE_BINARY" "${PODS_TARGET_SRCROOT}/lib/commonjs/scripts/getFonts.js" "$PROJECT_ROOT"/package.json >"$RESOURCES_TO_COPY"
27
+
28
+ #############
29
+ # Find the destination we copy to
30
+ #############
31
+
32
+ echo "(RNVI) PODS_CONFIGURATION_BUILD_DIR: $PODS_CONFIGURATION_BUILD_DIR"
33
+ XCODE_DIR=$(ls -d "$PODS_CONFIGURATION_BUILD_DIR"/*.app)
34
+ echo "(RNVI) XCODE_DIR: $XCODE_DIR"
35
+ DEST_DIR="${XCODE_DIR}"
36
+ echo "(RNVI) DEST_DIR: $DEST_DIR"
37
+ echo "(RNVI) INSTALL_DIR: $INSTALL_DIR"
38
+ mkdir -p "$DEST_DIR"
39
+
40
+ #############
41
+ # Copy the fonts
42
+ #############
43
+ echo "(RNVI) Copying the following files to $DEST_DIR"
44
+ sed 's/^/(RNVI) /' "$RESOURCES_TO_COPY"
45
+
46
+ # NOTE: Should we add --delete and remove old fonts automagically? NOt doing it yet as it feels risky
47
+ rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "$DEST_DIR"
48
+ # TODO: How do we test this is right?
49
+ if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
50
+ mkdir -p "${INSTALL_DIR}/react-native-vector-icons"
51
+ rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/react-native-vector-icons"
52
+ fi
53
+
54
+ rm -f "$RESOURCES_TO_COPY"
55
+
56
+ echo "(RNVI) END:RNVI_COPY_FONTS"
@@ -1,42 +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: GenerateModuleJavaSpec.js
9
- *
10
- * @nolint
11
- */
12
-
13
- package com.facebook.fbreact.specs;
14
-
15
- import com.facebook.proguard.annotations.DoNotStrip;
16
- import com.facebook.react.bridge.Promise;
17
- import com.facebook.react.bridge.ReactApplicationContext;
18
- import com.facebook.react.bridge.ReactContextBaseJavaModule;
19
- import com.facebook.react.bridge.ReactMethod;
20
- import com.facebook.react.turbomodule.core.interfaces.TurboModule;
21
- import javax.annotation.Nonnull;
22
-
23
- public abstract class NativeVectorIconsSpec extends ReactContextBaseJavaModule implements TurboModule {
24
- public static final String NAME = "VectorIcons";
25
-
26
- public NativeVectorIconsSpec(ReactApplicationContext reactContext) {
27
- super(reactContext);
28
- }
29
-
30
- @Override
31
- public @Nonnull String getName() {
32
- return NAME;
33
- }
34
-
35
- @ReactMethod
36
- @DoNotStrip
37
- public abstract void getImageForFont(String fontFamilyName, String glyph, double fontSize, double color, Promise promise);
38
-
39
- @ReactMethod(isBlockingSynchronousMethod = true)
40
- @DoNotStrip
41
- public abstract String getImageForFontSync(String fontFamilyName, String glyph, double fontSize, double color);
42
- }
@@ -1,49 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- #
3
- # This source code is licensed under the MIT license found in the
4
- # LICENSE file in the root directory of this source tree.
5
-
6
- cmake_minimum_required(VERSION 3.13)
7
- set(CMAKE_VERBOSE_MAKEFILE on)
8
-
9
- file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/RNVectorIconsSpec/*.cpp)
10
-
11
- add_library(
12
- react_codegen_RNVectorIconsSpec
13
- SHARED
14
- ${react_codegen_SRCS}
15
- )
16
-
17
- target_include_directories(react_codegen_RNVectorIconsSpec PUBLIC . react/renderer/components/RNVectorIconsSpec)
18
-
19
- target_link_libraries(
20
- react_codegen_RNVectorIconsSpec
21
- fbjni
22
- folly_runtime
23
- glog
24
- jsi
25
- react_codegen_rncore
26
- react_debug
27
- react_nativemodule_core
28
- react_render_componentregistry
29
- react_render_core
30
- react_render_debug
31
- react_render_graphics
32
- react_render_imagemanager
33
- react_render_mapbuffer
34
- react_utils
35
- rrc_image
36
- rrc_view
37
- turbomodulejsijni
38
- yoga
39
- )
40
-
41
- target_compile_options(
42
- react_codegen_RNVectorIconsSpec
43
- PRIVATE
44
- -DLOG_TAG=\"ReactNative\"
45
- -fexceptions
46
- -frtti
47
- -std=c++20
48
- -Wall
49
- )
@@ -1,38 +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: GenerateModuleJniCpp.js
9
- */
10
-
11
- #include "RNVectorIconsSpec.h"
12
-
13
- namespace facebook::react {
14
-
15
- static facebook::jsi::Value __hostFunction_NativeVectorIconsSpecJSI_getImageForFont(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
16
- static jmethodID cachedMethodId = nullptr;
17
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getImageForFont", "(Ljava/lang/String;Ljava/lang/String;DDLcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
18
- }
19
-
20
- static facebook::jsi::Value __hostFunction_NativeVectorIconsSpecJSI_getImageForFontSync(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
21
- static jmethodID cachedMethodId = nullptr;
22
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "getImageForFontSync", "(Ljava/lang/String;Ljava/lang/String;DD)Ljava/lang/String;", args, count, cachedMethodId);
23
- }
24
-
25
- NativeVectorIconsSpecJSI::NativeVectorIconsSpecJSI(const JavaTurboModule::InitParams &params)
26
- : JavaTurboModule(params) {
27
- methodMap_["getImageForFont"] = MethodMetadata {4, __hostFunction_NativeVectorIconsSpecJSI_getImageForFont};
28
- methodMap_["getImageForFontSync"] = MethodMetadata {4, __hostFunction_NativeVectorIconsSpecJSI_getImageForFontSync};
29
- }
30
-
31
- std::shared_ptr<TurboModule> RNVectorIconsSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
32
- if (moduleName == "VectorIcons") {
33
- return std::make_shared<NativeVectorIconsSpecJSI>(params);
34
- }
35
- return nullptr;
36
- }
37
-
38
- } // namespace facebook::react
@@ -1,31 +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: GenerateModuleJniH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include <ReactCommon/JavaTurboModule.h>
14
- #include <ReactCommon/TurboModule.h>
15
- #include <jsi/jsi.h>
16
-
17
- namespace facebook::react {
18
-
19
- /**
20
- * JNI C++ class for module 'NativeVectorIcons'
21
- */
22
- class JSI_EXPORT NativeVectorIconsSpecJSI : public JavaTurboModule {
23
- public:
24
- NativeVectorIconsSpecJSI(const JavaTurboModule::InitParams &params);
25
- };
26
-
27
-
28
- JSI_EXPORT
29
- std::shared_ptr<TurboModule> RNVectorIconsSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params);
30
-
31
- } // namespace facebook::react
@@ -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 <react/renderer/components/RNVectorIconsSpec/ComponentDescriptors.h>
12
- #include <react/renderer/core/ConcreteComponentDescriptor.h>
13
- #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
14
-
15
- namespace facebook::react {
16
-
17
- void RNVectorIconsSpec_registerComponentDescriptorsFromCodegen(
18
- std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) {
19
-
20
- }
21
-
22
- } // 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 <react/renderer/components/RNVectorIconsSpec/ShadowNodes.h>
14
- #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
- #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
16
-
17
- namespace facebook::react {
18
-
19
-
20
-
21
- void RNVectorIconsSpec_registerComponentDescriptorsFromCodegen(
22
- std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
23
-
24
- } // 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: GenerateEventEmitterCpp.js
9
- */
10
-
11
- #include <react/renderer/components/RNVectorIconsSpec/EventEmitters.h>
12
-
13
-
14
- namespace facebook::react {
15
-
16
- } // 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: GenerateEventEmitterH.js
9
- */
10
- #pragma once
11
-
12
- #include <react/renderer/components/view/ViewEventEmitter.h>
13
-
14
-
15
- namespace facebook::react {
16
-
17
- } // namespace facebook::react
@@ -1,19 +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 <react/renderer/components/RNVectorIconsSpec/Props.h>
12
- #include <react/renderer/core/PropsParserContext.h>
13
- #include <react/renderer/core/propsConversions.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
-
19
- } // namespace facebook::react
@@ -1,18 +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
-
13
-
14
- namespace facebook::react {
15
-
16
-
17
-
18
- } // namespace facebook::react
@@ -1,40 +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 "RNVectorIconsSpecJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
- static jsi::Value __hostFunction_NativeVectorIconsCxxSpecJSI_getImageForFont(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
- return static_cast<NativeVectorIconsCxxSpecJSI *>(&turboModule)->getImageForFont(
16
- rt,
17
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
18
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
19
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber(),
20
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asNumber()
21
- );
22
- }
23
- static jsi::Value __hostFunction_NativeVectorIconsCxxSpecJSI_getImageForFontSync(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
24
- return static_cast<NativeVectorIconsCxxSpecJSI *>(&turboModule)->getImageForFontSync(
25
- rt,
26
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
27
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
28
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asNumber(),
29
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asNumber()
30
- );
31
- }
32
-
33
- NativeVectorIconsCxxSpecJSI::NativeVectorIconsCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
34
- : TurboModule("VectorIcons", jsInvoker) {
35
- methodMap_["getImageForFont"] = MethodMetadata {4, __hostFunction_NativeVectorIconsCxxSpecJSI_getImageForFont};
36
- methodMap_["getImageForFontSync"] = MethodMetadata {4, __hostFunction_NativeVectorIconsCxxSpecJSI_getImageForFontSync};
37
- }
38
-
39
-
40
- } // 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 NativeVectorIconsCxxSpecJSI : public TurboModule {
19
- protected:
20
- NativeVectorIconsCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
21
-
22
- public:
23
- virtual jsi::Value getImageForFont(jsi::Runtime &rt, jsi::String fontFamilyName, jsi::String glyph, double fontSize, double color) = 0;
24
- virtual jsi::String getImageForFontSync(jsi::Runtime &rt, jsi::String fontFamilyName, jsi::String glyph, double fontSize, double color) = 0;
25
-
26
- };
27
-
28
- template <typename T>
29
- class JSI_EXPORT NativeVectorIconsCxxSpec : 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 = "VectorIcons";
36
-
37
- protected:
38
- NativeVectorIconsCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
39
- : TurboModule(std::string{NativeVectorIconsCxxSpec::kModuleName}, jsInvoker),
40
- delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
41
-
42
-
43
- private:
44
- class Delegate : public NativeVectorIconsCxxSpecJSI {
45
- public:
46
- Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
47
- NativeVectorIconsCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
48
-
49
- }
50
-
51
- jsi::Value getImageForFont(jsi::Runtime &rt, jsi::String fontFamilyName, jsi::String glyph, double fontSize, double color) override {
52
- static_assert(
53
- bridging::getParameterCount(&T::getImageForFont) == 5,
54
- "Expected getImageForFont(...) to have 5 parameters");
55
-
56
- return bridging::callFromJs<jsi::Value>(
57
- rt, &T::getImageForFont, jsInvoker_, instance_, std::move(fontFamilyName), std::move(glyph), std::move(fontSize), std::move(color));
58
- }
59
- jsi::String getImageForFontSync(jsi::Runtime &rt, jsi::String fontFamilyName, jsi::String glyph, double fontSize, double color) override {
60
- static_assert(
61
- bridging::getParameterCount(&T::getImageForFontSync) == 5,
62
- "Expected getImageForFontSync(...) to have 5 parameters");
63
-
64
- return bridging::callFromJs<jsi::String>(
65
- rt, &T::getImageForFontSync, jsInvoker_, instance_, std::move(fontFamilyName), std::move(glyph), std::move(fontSize), std::move(color));
66
- }
67
-
68
- private:
69
- friend class NativeVectorIconsCxxSpec;
70
- T *instance_;
71
- };
72
-
73
- Delegate delegate_;
74
- };
75
-
76
- } // 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 <react/renderer/components/RNVectorIconsSpec/ShadowNodes.h>
12
-
13
- namespace facebook::react {
14
-
15
-
16
-
17
- } // 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: GenerateShadowNodeH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include <react/renderer/components/RNVectorIconsSpec/EventEmitters.h>
14
- #include <react/renderer/components/RNVectorIconsSpec/Props.h>
15
- #include <react/renderer/components/RNVectorIconsSpec/States.h>
16
- #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
- #include <jsi/jsi.h>
18
-
19
- namespace facebook::react {
20
-
21
-
22
-
23
- } // 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 <react/renderer/components/RNVectorIconsSpec/States.h>
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
- } // namespace facebook::react
@@ -1,19 +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
-
18
-
19
- } // namespace facebook::react