@secondts/bark-react-native 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarkReactNative.podspec +1 -1
- package/README.md +3 -1
- package/android/src/main/java/com/barkreactnative/BarkReactNativePackage.kt +2 -2
- package/cpp/generated/bark.cpp +763 -106
- package/cpp/generated/bark.hpp +31 -4
- package/lib/commonjs/generated/bark-ffi.js +2 -29
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +1658 -6741
- package/lib/commonjs/generated/bark.js.map +1 -1
- package/lib/module/generated/bark-ffi.js +2 -29
- package/lib/module/generated/bark-ffi.js.map +1 -1
- package/lib/module/generated/bark.js +1658 -6723
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +239 -267
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +3424 -1882
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +239 -267
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +3424 -1882
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +7 -6
- package/scripts/postinstall.js +35 -9
- package/src/generated/bark-ffi.ts +503 -512
- package/src/generated/bark.ts +9757 -5513
package/BarkReactNative.podspec
CHANGED
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
|
|
18
18
|
s.source_files = "ios/*.{h,m,mm,swift}", "ios/generated/build/generated/ios/RNBarkReactNativeSpec/**/*.h", "ios/generated/build/generated/ios/RNBarkReactNativeSpecJSI.h", "ios/generated/build/generated/ios/RNBarkReactNativeSpecJSI-generated.cpp", "ios/generated/build/generated/ios/react/**/*.{h,cpp}", "cpp/**/*.{hpp,cpp,c,h}", "cpp/generated/**/*.{hpp,cpp,c,h}"
|
|
19
19
|
s.vendored_frameworks = "build/RnBark.xcframework"
|
|
20
|
-
s.dependency "uniffi-bindgen-react-native", "0.31.0-
|
|
20
|
+
s.dependency "uniffi-bindgen-react-native", "0.31.0-5"
|
|
21
21
|
|
|
22
22
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
23
23
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
package/README.md
CHANGED
|
@@ -11,6 +11,8 @@ Bark is an implementation of the Ark protocol on bitcoin, led by [Second](https:
|
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
|
+
Requires React Native 0.75+ (Expo SDK 52+) with the New Architecture enabled and Hermes, the default JavaScript engine.
|
|
15
|
+
|
|
14
16
|
### Expo
|
|
15
17
|
|
|
16
18
|
1. Install the package:
|
|
@@ -60,7 +62,7 @@ npx expo install @secondts/bark-react-native@beta
|
|
|
60
62
|
|
|
61
63
|
```bash
|
|
62
64
|
# Or install a specific beta version
|
|
63
|
-
npx expo install @secondts/bark-react-native@0.
|
|
65
|
+
npx expo install @secondts/bark-react-native@0.26.0
|
|
64
66
|
```
|
|
65
67
|
|
|
66
68
|
For bare React Native projects, use:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Generated by uniffi-bindgen-react-native
|
|
2
2
|
package com.barkreactnative
|
|
3
3
|
|
|
4
|
-
import com.facebook.react.
|
|
4
|
+
import com.facebook.react.BaseReactPackage
|
|
5
5
|
import com.facebook.react.bridge.NativeModule
|
|
6
6
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
7
7
|
import com.facebook.react.module.model.ReactModuleInfo
|
|
8
8
|
import com.facebook.react.module.model.ReactModuleInfoProvider
|
|
9
9
|
import java.util.HashMap
|
|
10
10
|
|
|
11
|
-
class BarkReactNativePackage :
|
|
11
|
+
class BarkReactNativePackage : BaseReactPackage() {
|
|
12
12
|
override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
|
|
13
13
|
return if (name == BarkReactNativeModule.NAME) {
|
|
14
14
|
BarkReactNativeModule(reactContext)
|