react-native-zyprotectabio-module 0.1.0 → 0.1.7

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 (56) hide show
  1. package/LICENSE +2 -1
  2. package/README.md +7 -158
  3. package/android/.gradle/9.0-milestone-1/checksums/checksums.lock +0 -0
  4. package/android/.gradle/9.0-milestone-1/fileHashes/fileHashes.lock +0 -0
  5. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  6. package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
  7. package/android/.gradle/config.properties +1 -1
  8. package/android/.idea/caches/deviceStreaming.xml +1 -1
  9. package/android/.idea/gradle.xml +0 -1
  10. package/android/.idea/misc.xml +1 -0
  11. package/android/.project +17 -0
  12. package/android/.settings/org.eclipse.buildship.core.prefs +13 -0
  13. package/android/build.gradle +111 -32
  14. package/android/gradle.properties +4 -5
  15. package/android/local.properties +1 -1
  16. package/android/src/main/AndroidManifest.xml +1 -4
  17. package/android/src/main/java/com/{zyprotectabiomodule/ZyBioProtectaReactNativeModuleModule.kt → reactnativezybanbifbiomodule/ZybanbifbioModuleModule.kt} +30 -15
  18. package/android/src/main/java/com/reactnativezybanbifbiomodule/ZybanbifbioModulePackage.kt +17 -0
  19. package/android/src/main/java/com/{zyprotectabiomodule → reactnativezybanbifbiomodule}/bean/ErroresPantallaRN.kt +1 -1
  20. package/android/src/main/java/com/{zyprotectabiomodule → reactnativezybanbifbiomodule}/bean/Opcional.kt +1 -1
  21. package/android/src/main/java/com/{zyprotectabiomodule → reactnativezybanbifbiomodule}/bean/ScreenText.kt +1 -1
  22. package/android/src/main/java/com/{zyprotectabiomodule → reactnativezybanbifbiomodule}/bean/StepperRN.kt +1 -1
  23. package/ios/ZybanbifbioModule-Bridging-Header.h +2 -0
  24. package/ios/ZybanbifbioModule.m +9 -0
  25. package/ios/ZybanbifbioModule.swift +8 -0
  26. package/ios/ZybanbifbioModule.xcodeproj/project.pbxproj +293 -0
  27. package/ios/ZybanbifbioModule.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
  28. package/lib/commonjs/index.js +12 -0
  29. package/lib/commonjs/index.js.map +1 -0
  30. package/lib/module/index.js +6 -0
  31. package/lib/module/index.js.map +1 -0
  32. package/lib/typescript/index.d.ts +5 -0
  33. package/package.json +122 -29
  34. package/src/index.tsx +6 -19
  35. package/.gitattributes +0 -2
  36. package/CODE_OF_CONDUCT.md +0 -133
  37. package/CONTRIBUTING.md +0 -122
  38. package/android/.gradle/8.8/checksums/checksums.lock +0 -0
  39. package/android/.gradle/8.8/dependencies-accessors/gc.properties +0 -0
  40. package/android/.gradle/8.8/fileChanges/last-build.bin +0 -0
  41. package/android/.gradle/8.8/fileHashes/fileHashes.lock +0 -0
  42. package/android/.gradle/8.8/gc.properties +0 -0
  43. package/android/.idea/android.iml +0 -9
  44. package/android/.idea/modules.xml +0 -8
  45. package/android/src/main/AndroidManifestNew.xml +0 -2
  46. package/android/src/main/java/com/zyprotectabiomodule/ZyBioProtectaReactNativeModulePackage.kt +0 -26
  47. package/babel.config.js +0 -5
  48. package/ios/ZyBanbifBioRn.h +0 -12
  49. package/ios/ZyBanbifBioRn.m +0 -90
  50. package/lefthook.yml +0 -14
  51. package/react-native-zyprotectabio-module.podspec +0 -23
  52. package/scripts/postinstall.js +0 -50
  53. package/src/__tests__/index.test.tsx +0 -1
  54. package/tsconfig.build.json +0 -4
  55. package/tsconfig.json +0 -29
  56. package/turbo.json +0 -36
@@ -0,0 +1,293 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 46;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+
11
+ 5E555C0D2413F4C50049A1A2 /* ZybanbifbioModule.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* ZybanbifbioModule.m */; };
12
+ F4FF95D7245B92E800C19C63 /* ZybanbifbioModule.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* ZybanbifbioModule.swift */; };
13
+
14
+ /* End PBXBuildFile section */
15
+
16
+ /* Begin PBXCopyFilesBuildPhase section */
17
+ 58B511D91A9E6C8500147676 /* CopyFiles */ = {
18
+ isa = PBXCopyFilesBuildPhase;
19
+ buildActionMask = 2147483647;
20
+ dstPath = "include/$(PRODUCT_NAME)";
21
+ dstSubfolderSpec = 16;
22
+ files = (
23
+ );
24
+ runOnlyForDeploymentPostprocessing = 0;
25
+ };
26
+ /* End PBXCopyFilesBuildPhase section */
27
+
28
+ /* Begin PBXFileReference section */
29
+ 134814201AA4EA6300B7C361 /* libZybanbifbioModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libZybanbifbioModule.a; sourceTree = BUILT_PRODUCTS_DIR; };
30
+
31
+ B3E7B5891CC2AC0600A0062D /* ZybanbifbioModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZybanbifbioModule.m; sourceTree = "<group>"; };
32
+ F4FF95D5245B92E700C19C63 /* ZybanbifbioModule-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ZybanbifbioModule-Bridging-Header.h"; sourceTree = "<group>"; };
33
+ F4FF95D6245B92E800C19C63 /* ZybanbifbioModule.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZybanbifbioModule.swift; sourceTree = "<group>"; };
34
+
35
+ /* End PBXFileReference section */
36
+
37
+ /* Begin PBXFrameworksBuildPhase section */
38
+ 58B511D81A9E6C8500147676 /* Frameworks */ = {
39
+ isa = PBXFrameworksBuildPhase;
40
+ buildActionMask = 2147483647;
41
+ files = (
42
+ );
43
+ runOnlyForDeploymentPostprocessing = 0;
44
+ };
45
+ /* End PBXFrameworksBuildPhase section */
46
+
47
+ /* Begin PBXGroup section */
48
+ 134814211AA4EA7D00B7C361 /* Products */ = {
49
+ isa = PBXGroup;
50
+ children = (
51
+ 134814201AA4EA6300B7C361 /* libZybanbifbioModule.a */,
52
+ );
53
+ name = Products;
54
+ sourceTree = "<group>";
55
+ };
56
+ 58B511D21A9E6C8500147676 = {
57
+ isa = PBXGroup;
58
+ children = (
59
+
60
+ F4FF95D6245B92E800C19C63 /* ZybanbifbioModule.swift */,
61
+ B3E7B5891CC2AC0600A0062D /* ZybanbifbioModule.m */,
62
+ F4FF95D5245B92E700C19C63 /* ZybanbifbioModule-Bridging-Header.h */,
63
+
64
+ 134814211AA4EA7D00B7C361 /* Products */,
65
+ );
66
+ sourceTree = "<group>";
67
+ };
68
+ /* End PBXGroup section */
69
+
70
+ /* Begin PBXNativeTarget section */
71
+ 58B511DA1A9E6C8500147676 /* ZybanbifbioModule */ = {
72
+ isa = PBXNativeTarget;
73
+ buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "ZybanbifbioModule" */;
74
+ buildPhases = (
75
+ 58B511D71A9E6C8500147676 /* Sources */,
76
+ 58B511D81A9E6C8500147676 /* Frameworks */,
77
+ 58B511D91A9E6C8500147676 /* CopyFiles */,
78
+ );
79
+ buildRules = (
80
+ );
81
+ dependencies = (
82
+ );
83
+ name = ZybanbifbioModule;
84
+ productName = RCTDataManager;
85
+ productReference = 134814201AA4EA6300B7C361 /* libZybanbifbioModule.a */;
86
+ productType = "com.apple.product-type.library.static";
87
+ };
88
+ /* End PBXNativeTarget section */
89
+
90
+ /* Begin PBXProject section */
91
+ 58B511D31A9E6C8500147676 /* Project object */ = {
92
+ isa = PBXProject;
93
+ attributes = {
94
+ LastUpgradeCheck = 0920;
95
+ ORGANIZATIONNAME = Facebook;
96
+ TargetAttributes = {
97
+ 58B511DA1A9E6C8500147676 = {
98
+ CreatedOnToolsVersion = 6.1.1;
99
+ };
100
+ };
101
+ };
102
+ buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "ZybanbifbioModule" */;
103
+ compatibilityVersion = "Xcode 3.2";
104
+ developmentRegion = English;
105
+ hasScannedForEncodings = 0;
106
+ knownRegions = (
107
+ English,
108
+ en,
109
+ );
110
+ mainGroup = 58B511D21A9E6C8500147676;
111
+ productRefGroup = 58B511D21A9E6C8500147676;
112
+ projectDirPath = "";
113
+ projectRoot = "";
114
+ targets = (
115
+ 58B511DA1A9E6C8500147676 /* ZybanbifbioModule */,
116
+ );
117
+ };
118
+ /* End PBXProject section */
119
+
120
+ /* Begin PBXSourcesBuildPhase section */
121
+ 58B511D71A9E6C8500147676 /* Sources */ = {
122
+ isa = PBXSourcesBuildPhase;
123
+ buildActionMask = 2147483647;
124
+ files = (
125
+
126
+ F4FF95D7245B92E800C19C63 /* ZybanbifbioModule.swift in Sources */,
127
+ B3E7B58A1CC2AC0600A0062D /* ZybanbifbioModule.m in Sources */,
128
+
129
+ );
130
+ runOnlyForDeploymentPostprocessing = 0;
131
+ };
132
+ /* End PBXSourcesBuildPhase section */
133
+
134
+ /* Begin XCBuildConfiguration section */
135
+ 58B511ED1A9E6C8500147676 /* Debug */ = {
136
+ isa = XCBuildConfiguration;
137
+ buildSettings = {
138
+ ALWAYS_SEARCH_USER_PATHS = NO;
139
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
140
+ CLANG_CXX_LIBRARY = "libc++";
141
+ CLANG_ENABLE_MODULES = YES;
142
+ CLANG_ENABLE_OBJC_ARC = YES;
143
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
144
+ CLANG_WARN_BOOL_CONVERSION = YES;
145
+ CLANG_WARN_COMMA = YES;
146
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
147
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
148
+ CLANG_WARN_EMPTY_BODY = YES;
149
+ CLANG_WARN_ENUM_CONVERSION = YES;
150
+ CLANG_WARN_INFINITE_RECURSION = YES;
151
+ CLANG_WARN_INT_CONVERSION = YES;
152
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
153
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
154
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
155
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
156
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
157
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
158
+ CLANG_WARN_UNREACHABLE_CODE = YES;
159
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
160
+ COPY_PHASE_STRIP = NO;
161
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
162
+ ENABLE_TESTABILITY = YES;
163
+ GCC_C_LANGUAGE_STANDARD = gnu99;
164
+ GCC_DYNAMIC_NO_PIC = NO;
165
+ GCC_NO_COMMON_BLOCKS = YES;
166
+ GCC_OPTIMIZATION_LEVEL = 0;
167
+ GCC_PREPROCESSOR_DEFINITIONS = (
168
+ "DEBUG=1",
169
+ "$(inherited)",
170
+ );
171
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
172
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
173
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
174
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
175
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
176
+ GCC_WARN_UNUSED_FUNCTION = YES;
177
+ GCC_WARN_UNUSED_VARIABLE = YES;
178
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
179
+ MTL_ENABLE_DEBUG_INFO = YES;
180
+ ONLY_ACTIVE_ARCH = YES;
181
+ SDKROOT = iphoneos;
182
+ };
183
+ name = Debug;
184
+ };
185
+ 58B511EE1A9E6C8500147676 /* Release */ = {
186
+ isa = XCBuildConfiguration;
187
+ buildSettings = {
188
+ ALWAYS_SEARCH_USER_PATHS = NO;
189
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
190
+ CLANG_CXX_LIBRARY = "libc++";
191
+ CLANG_ENABLE_MODULES = YES;
192
+ CLANG_ENABLE_OBJC_ARC = YES;
193
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
194
+ CLANG_WARN_BOOL_CONVERSION = YES;
195
+ CLANG_WARN_COMMA = YES;
196
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
197
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
198
+ CLANG_WARN_EMPTY_BODY = YES;
199
+ CLANG_WARN_ENUM_CONVERSION = YES;
200
+ CLANG_WARN_INFINITE_RECURSION = YES;
201
+ CLANG_WARN_INT_CONVERSION = YES;
202
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
203
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
204
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
205
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
206
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
207
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
208
+ CLANG_WARN_UNREACHABLE_CODE = YES;
209
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
210
+ COPY_PHASE_STRIP = YES;
211
+ ENABLE_NS_ASSERTIONS = NO;
212
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
213
+ GCC_C_LANGUAGE_STANDARD = gnu99;
214
+ GCC_NO_COMMON_BLOCKS = YES;
215
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
216
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
217
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
218
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
219
+ GCC_WARN_UNUSED_FUNCTION = YES;
220
+ GCC_WARN_UNUSED_VARIABLE = YES;
221
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
222
+ MTL_ENABLE_DEBUG_INFO = NO;
223
+ SDKROOT = iphoneos;
224
+ VALIDATE_PRODUCT = YES;
225
+ };
226
+ name = Release;
227
+ };
228
+ 58B511F01A9E6C8500147676 /* Debug */ = {
229
+ isa = XCBuildConfiguration;
230
+ buildSettings = {
231
+ HEADER_SEARCH_PATHS = (
232
+ "$(inherited)",
233
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
234
+ "$(SRCROOT)/../../../React/**",
235
+ "$(SRCROOT)/../../react-native/React/**",
236
+ );
237
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
238
+ OTHER_LDFLAGS = "-ObjC";
239
+ PRODUCT_NAME = ZybanbifbioModule;
240
+ SKIP_INSTALL = YES;
241
+
242
+ SWIFT_OBJC_BRIDGING_HEADER = "ZybanbifbioModule-Bridging-Header.h";
243
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
244
+ SWIFT_VERSION = 5.0;
245
+
246
+ };
247
+ name = Debug;
248
+ };
249
+ 58B511F11A9E6C8500147676 /* Release */ = {
250
+ isa = XCBuildConfiguration;
251
+ buildSettings = {
252
+ HEADER_SEARCH_PATHS = (
253
+ "$(inherited)",
254
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
255
+ "$(SRCROOT)/../../../React/**",
256
+ "$(SRCROOT)/../../react-native/React/**",
257
+ );
258
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
259
+ OTHER_LDFLAGS = "-ObjC";
260
+ PRODUCT_NAME = ZybanbifbioModule;
261
+ SKIP_INSTALL = YES;
262
+
263
+ SWIFT_OBJC_BRIDGING_HEADER = "ZybanbifbioModule-Bridging-Header.h";
264
+ SWIFT_VERSION = 5.0;
265
+
266
+ };
267
+ name = Release;
268
+ };
269
+ /* End XCBuildConfiguration section */
270
+
271
+ /* Begin XCConfigurationList section */
272
+ 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "ZybanbifbioModule" */ = {
273
+ isa = XCConfigurationList;
274
+ buildConfigurations = (
275
+ 58B511ED1A9E6C8500147676 /* Debug */,
276
+ 58B511EE1A9E6C8500147676 /* Release */,
277
+ );
278
+ defaultConfigurationIsVisible = 0;
279
+ defaultConfigurationName = Release;
280
+ };
281
+ 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "ZybanbifbioModule" */ = {
282
+ isa = XCConfigurationList;
283
+ buildConfigurations = (
284
+ 58B511F01A9E6C8500147676 /* Debug */,
285
+ 58B511F11A9E6C8500147676 /* Release */,
286
+ );
287
+ defaultConfigurationIsVisible = 0;
288
+ defaultConfigurationName = Release;
289
+ };
290
+ /* End XCConfigurationList section */
291
+ };
292
+ rootObject = 58B511D31A9E6C8500147676 /* Project object */;
293
+ }
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ </Workspace>
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNative = require("react-native");
8
+ const {
9
+ ZybanbifbioModule
10
+ } = _reactNative.NativeModules;
11
+ var _default = exports.default = ZybanbifbioModule;
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","ZybanbifbioModule","NativeModules","_default","exports","default"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\ntype ZybanbifbioModuleType = {\n multiply(a: number, b: number): Promise<number>;\n};\n\nconst { ZybanbifbioModule } = NativeModules;\n\nexport default ZybanbifbioModule as ZybanbifbioModuleType;\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA,MAAM;EAAEC;AAAkB,CAAC,GAAGC,0BAAa;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE7BJ,iBAAiB","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ import { NativeModules } from 'react-native';
2
+ const {
3
+ ZybanbifbioModule
4
+ } = NativeModules;
5
+ export default ZybanbifbioModule;
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeModules","ZybanbifbioModule"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\ntype ZybanbifbioModuleType = {\n multiply(a: number, b: number): Promise<number>;\n};\n\nconst { ZybanbifbioModule } = NativeModules;\n\nexport default ZybanbifbioModule as ZybanbifbioModuleType;\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;AAM5C,MAAM;EAAEC;AAAkB,CAAC,GAAGD,aAAa;AAE3C,eAAeC,iBAAiB","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ type ZybanbifbioModuleType = {
2
+ multiply(a: number, b: number): Promise<number>;
3
+ };
4
+ declare const _default: ZybanbifbioModuleType;
5
+ export default _default;
package/package.json CHANGED
@@ -1,32 +1,125 @@
1
1
  {
2
- "name": "react-native-zyprotectabio-module",
3
- "version": "0.1.0",
4
- "description": "bio protecta",
5
- "scripts":
6
- {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "postinstall": "node ./scripts/postinstall.js"
9
- },
10
- "keywords":
11
- [
12
- "react-native",
13
- "ios",
14
- "android"
2
+ "name": "react-native-zyprotectabio-module",
3
+ "version": "0.1.7",
4
+ "description": "react-native-zyprotectabio-module",
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",
10
+ "files": [
11
+ "src",
12
+ "lib",
13
+ "android",
14
+ "ios",
15
+ "cpp",
16
+ "react-native-zyprotectabio-module.podspec",
17
+ "!lib/typescript/example",
18
+ "!android/build",
19
+ "!ios/build",
20
+ "!**/__tests__",
21
+ "!**/__fixtures__",
22
+ "!**/__mocks__"
23
+ ],
24
+ "scripts": {
25
+ "build": "bob build",
26
+ "prepare": "npx react-native-builder-bob build",
27
+ "test": "jest",
28
+ "typescript": "tsc --noEmit",
29
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
30
+ "release": "release-it",
31
+ "example": "yarn --cwd example",
32
+ "pods": "cd example && pod-install --quiet",
33
+ "bootstrap": "yarn example && yarn && yarn pods"
34
+ },
35
+ "keywords": [
36
+ "react-native",
37
+ "ios",
38
+ "android"
39
+ ],
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "https://github.com/jorgeSaenzUgaz/react-native-zyprotectabio-module"
43
+ },
44
+ "author": "jorgeSaenzUgaz <jorgeSaenz695@gmail.com> (https://github.com/jorgeSaenzUgaz)",
45
+ "license": "MIT",
46
+ "bugs": {
47
+ "url": "https://github.com/jorgeSaenzUgaz/react-native-zyprotectabio-module/issues"
48
+ },
49
+ "homepage": "https://github.com/jorgeSaenzUgaz/react-native-zyprotectabio-module#readme",
50
+ "publishConfig": {
51
+ "registry": "https://registry.npmjs.org/"
52
+ },
53
+ "devDependencies": {
54
+ "@react-native-community/eslint-config": "^2.0.0",
55
+ "@types/jest": "^26.0.0",
56
+ "@types/react": "^16.9.19",
57
+ "@types/react-native": "0.62.13",
58
+ "eslint": "^7.2.0",
59
+ "eslint-config-prettier": "^7.0.0",
60
+ "eslint-plugin-prettier": "^3.1.3",
61
+ "jest": "^26.0.1",
62
+ "pod-install": "^0.1.0",
63
+ "prettier": "^2.0.5",
64
+ "react": "16.13.1",
65
+ "react-native": "0.63.4",
66
+ "react-native-builder-bob": "^0.17.1",
67
+ "release-it": "^14.2.2",
68
+ "typescript": "^4.1.3"
69
+ },
70
+ "peerDependencies": {
71
+ "react": "*",
72
+ "react-native": "*"
73
+ },
74
+ "jest": {
75
+ "preset": "react-native",
76
+ "modulePathIgnorePatterns": [
77
+ "<rootDir>/example/node_modules",
78
+ "<rootDir>/lib/"
79
+ ]
80
+ },
81
+ "eslintConfig": {
82
+ "root": true,
83
+ "extends": [
84
+ "@react-native-community",
85
+ "prettier"
15
86
  ],
16
- "repository":
17
- {
18
- "type": "git",
19
- "url": "git+https://github.com/ZYTRUST/react-native-zyprotectabio-module.git"
20
- },
21
- "author": "Iván Cáceres <ztmobile@zytrust.com> (https://github.com/ZYTRUST)",
22
- "license": "MIT",
23
- "bugs":
24
- {
25
- "url": "https://github.com/ZYTRUST/react-native-zyprotectabio-module/issues"
26
- },
27
- "homepage": "www.zytrust.com",
28
- "publishConfig":
29
- {
30
- "access": "public"
87
+ "rules": {
88
+ "prettier/prettier": [
89
+ "error",
90
+ {
91
+ "quoteProps": "consistent",
92
+ "singleQuote": true,
93
+ "tabWidth": 2,
94
+ "trailingComma": "es5",
95
+ "useTabs": false
96
+ }
97
+ ]
31
98
  }
32
- }
99
+ },
100
+ "eslintIgnore": [
101
+ "node_modules/",
102
+ "lib/"
103
+ ],
104
+ "prettier": {
105
+ "quoteProps": "consistent",
106
+ "singleQuote": true,
107
+ "tabWidth": 2,
108
+ "trailingComma": "es5",
109
+ "useTabs": false
110
+ },
111
+ "react-native-builder-bob": {
112
+ "source": "src",
113
+ "output": "lib",
114
+ "targets": [
115
+ "commonjs",
116
+ "module",
117
+ [
118
+ "typescript",
119
+ {
120
+ "project": "tsconfig.build.json"
121
+ }
122
+ ]
123
+ ]
124
+ }
125
+ }
package/src/index.tsx CHANGED
@@ -1,22 +1,9 @@
1
- import { NativeModules, Platform } from 'react-native';
1
+ import { NativeModules } from 'react-native';
2
2
 
3
- const LINKING_ERROR =
4
- `The package 'react-native-zyprotectabio-module' doesn't seem to be linked. Make sure: \n\n` +
5
- Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
6
- '- You rebuilt the app after installing the package\n' +
7
- '- You are not using Expo Go\n';
3
+ type ZybanbifbioModuleType = {
4
+ multiply(a: number, b: number): Promise<number>;
5
+ };
8
6
 
9
- const ZyprotectabioModule = NativeModules.ZyprotectabioModule
10
- ? NativeModules.ZyprotectabioModule
11
- : new Proxy(
12
- {},
13
- {
14
- get() {
15
- throw new Error(LINKING_ERROR);
16
- },
17
- }
18
- );
7
+ const { ZybanbifbioModule } = NativeModules;
19
8
 
20
- export function multiply(a: number, b: number): Promise<number> {
21
- return ZyprotectabioModule.multiply(a, b);
22
- }
9
+ export default ZybanbifbioModule as ZybanbifbioModuleType;
package/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
@@ -1,133 +0,0 @@
1
-
2
- # Contributor Covenant Code of Conduct
3
-
4
- ## Our Pledge
5
-
6
- We as members, contributors, and leaders pledge to make participation in our
7
- community a harassment-free experience for everyone, regardless of age, body
8
- size, visible or invisible disability, ethnicity, sex characteristics, gender
9
- identity and expression, level of experience, education, socio-economic status,
10
- nationality, personal appearance, race, caste, color, religion, or sexual
11
- identity and orientation.
12
-
13
- We pledge to act and interact in ways that contribute to an open, welcoming,
14
- diverse, inclusive, and healthy community.
15
-
16
- ## Our Standards
17
-
18
- Examples of behavior that contributes to a positive environment for our
19
- community include:
20
-
21
- * Demonstrating empathy and kindness toward other people
22
- * Being respectful of differing opinions, viewpoints, and experiences
23
- * Giving and gracefully accepting constructive feedback
24
- * Accepting responsibility and apologizing to those affected by our mistakes,
25
- and learning from the experience
26
- * Focusing on what is best not just for us as individuals, but for the overall
27
- community
28
-
29
- Examples of unacceptable behavior include:
30
-
31
- * The use of sexualized language or imagery, and sexual attention or advances of
32
- any kind
33
- * Trolling, insulting or derogatory comments, and personal or political attacks
34
- * Public or private harassment
35
- * Publishing others' private information, such as a physical or email address,
36
- without their explicit permission
37
- * Other conduct which could reasonably be considered inappropriate in a
38
- professional setting
39
-
40
- ## Enforcement Responsibilities
41
-
42
- Community leaders are responsible for clarifying and enforcing our standards of
43
- acceptable behavior and will take appropriate and fair corrective action in
44
- response to any behavior that they deem inappropriate, threatening, offensive,
45
- or harmful.
46
-
47
- Community leaders have the right and responsibility to remove, edit, or reject
48
- comments, commits, code, wiki edits, issues, and other contributions that are
49
- not aligned to this Code of Conduct, and will communicate reasons for moderation
50
- decisions when appropriate.
51
-
52
- ## Scope
53
-
54
- This Code of Conduct applies within all community spaces, and also applies when
55
- an individual is officially representing the community in public spaces.
56
- Examples of representing our community include using an official e-mail address,
57
- posting via an official social media account, or acting as an appointed
58
- representative at an online or offline event.
59
-
60
- ## Enforcement
61
-
62
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
- reported to the community leaders responsible for enforcement at
64
- [INSERT CONTACT METHOD].
65
- All complaints will be reviewed and investigated promptly and fairly.
66
-
67
- All community leaders are obligated to respect the privacy and security of the
68
- reporter of any incident.
69
-
70
- ## Enforcement Guidelines
71
-
72
- Community leaders will follow these Community Impact Guidelines in determining
73
- the consequences for any action they deem in violation of this Code of Conduct:
74
-
75
- ### 1. Correction
76
-
77
- **Community Impact**: Use of inappropriate language or other behavior deemed
78
- unprofessional or unwelcome in the community.
79
-
80
- **Consequence**: A private, written warning from community leaders, providing
81
- clarity around the nature of the violation and an explanation of why the
82
- behavior was inappropriate. A public apology may be requested.
83
-
84
- ### 2. Warning
85
-
86
- **Community Impact**: A violation through a single incident or series of
87
- actions.
88
-
89
- **Consequence**: A warning with consequences for continued behavior. No
90
- interaction with the people involved, including unsolicited interaction with
91
- those enforcing the Code of Conduct, for a specified period of time. This
92
- includes avoiding interactions in community spaces as well as external channels
93
- like social media. Violating these terms may lead to a temporary or permanent
94
- ban.
95
-
96
- ### 3. Temporary Ban
97
-
98
- **Community Impact**: A serious violation of community standards, including
99
- sustained inappropriate behavior.
100
-
101
- **Consequence**: A temporary ban from any sort of interaction or public
102
- communication with the community for a specified period of time. No public or
103
- private interaction with the people involved, including unsolicited interaction
104
- with those enforcing the Code of Conduct, is allowed during this period.
105
- Violating these terms may lead to a permanent ban.
106
-
107
- ### 4. Permanent Ban
108
-
109
- **Community Impact**: Demonstrating a pattern of violation of community
110
- standards, including sustained inappropriate behavior, harassment of an
111
- individual, or aggression toward or disparagement of classes of individuals.
112
-
113
- **Consequence**: A permanent ban from any sort of public interaction within the
114
- community.
115
-
116
- ## Attribution
117
-
118
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
- version 2.1, available at
120
- [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121
-
122
- Community Impact Guidelines were inspired by
123
- [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124
-
125
- For answers to common questions about this code of conduct, see the FAQ at
126
- [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127
- [https://www.contributor-covenant.org/translations][translations].
128
-
129
- [homepage]: https://www.contributor-covenant.org
130
- [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131
- [Mozilla CoC]: https://github.com/mozilla/diversity
132
- [FAQ]: https://www.contributor-covenant.org/faq
133
- [translations]: https://www.contributor-covenant.org/translations