@volcengine/react-native-live-pull 1.0.2 → 1.0.3-rc.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.
Files changed (33) hide show
  1. package/README.md +1 -0
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/volcengine/velive/rn/pull/VolcLiveModule.java +1 -1
  4. package/android/src/main/java/com/volcengine/velive/rn/pull/VolcViewManager.java +1 -1
  5. package/ios/VeLivePullView.m +1 -1
  6. package/ios/VeLivePullViewManager.m +1 -1
  7. package/lib/commonjs/index.js +12227 -8161
  8. package/lib/module/index.js +12228 -8160
  9. package/lib/typescript/codegen/android/api.d.ts +76 -22
  10. package/lib/typescript/codegen/android/callback.d.ts +21 -4
  11. package/lib/typescript/codegen/android/errorcode.d.ts +25 -2
  12. package/lib/typescript/codegen/android/external.d.ts +1 -0
  13. package/lib/typescript/codegen/android/index.d.ts +1 -0
  14. package/lib/typescript/codegen/android/keytype.d.ts +119 -15
  15. package/lib/typescript/codegen/android/types.d.ts +7 -6
  16. package/lib/typescript/codegen/ios/api.d.ts +13 -27
  17. package/lib/typescript/codegen/ios/callback.d.ts +19 -33
  18. package/lib/typescript/codegen/ios/external.d.ts +1 -0
  19. package/lib/typescript/codegen/ios/index.d.ts +1 -0
  20. package/lib/typescript/codegen/ios/keytype.d.ts +0 -56
  21. package/lib/typescript/codegen/ios/types.d.ts +16 -5
  22. package/lib/typescript/codegen/pack/api.d.ts +93 -117
  23. package/lib/typescript/codegen/pack/callback.d.ts +73 -56
  24. package/lib/typescript/codegen/pack/errorcode.d.ts +65 -45
  25. package/lib/typescript/codegen/pack/external.d.ts +1 -0
  26. package/lib/typescript/codegen/pack/index.d.ts +2 -1
  27. package/lib/typescript/codegen/pack/keytype.d.ts +501 -544
  28. package/lib/typescript/codegen/pack/types.d.ts +68 -1
  29. package/lib/typescript/component.d.ts +9 -2
  30. package/lib/typescript/core/keytype.d.ts +1 -1
  31. package/lib/typescript/platforms/ios/extends.d.ts +2 -0
  32. package/package.json +6 -4
  33. package/react-native-velive-pull.podspec +1 -1
package/README.md CHANGED
@@ -1,2 +1,3 @@
1
1
  # 火山引擎直播拉流 React Native SDK
2
2
 
3
+ 详见[使用说明](https://www.volcengine.com/docs/6469/1314105)
@@ -88,6 +88,6 @@ dependencies {
88
88
  // noinspection GradleDynamicVersion
89
89
  implementation "com.facebook.react:react-native:+"
90
90
 
91
- implementation "com.volcengine:VolcApiEngine:1.0.3"
91
+ implementation "com.volcengine:VolcApiEngine:1.2.3"
92
92
  implementation 'com.bytedanceapi:ttsdk-ttlivepull_rtc:1.41.3.4'
93
93
  }
@@ -12,7 +12,7 @@ import com.facebook.react.bridge.WritableMap;
12
12
  import com.facebook.react.module.annotations.ReactModule;
13
13
  import com.facebook.react.modules.core.DeviceEventManagerModule;
14
14
 
15
- import com.volcengine.VolcApiEngine.runtime.*;
15
+ import com.volcengine.VolcApiEngine.*;
16
16
  import com.volcengine.velive.rn.pull.autogen.MethodSignature;
17
17
 
18
18
  @ReactModule(name = VolcLiveModule.NAME)
@@ -80,7 +80,7 @@ public class VolcViewManager extends SimpleViewManager<VolcView> implements Volc
80
80
  "load",
81
81
  MapBuilder.of(
82
82
  "phasedRegistrationNames",
83
- MapBuilder.of("bubbled", "onLoad")
83
+ MapBuilder.of("bubbled", "onViewLoad")
84
84
  )
85
85
  ).build();
86
86
  }
@@ -30,7 +30,7 @@
30
30
  [self emitLoaded];
31
31
  }
32
32
 
33
- - (void) setOnLoad:(RCTBubblingEventBlock)onLoad {
33
+ - (void) setOnViewLoad:(RCTBubblingEventBlock)onLoad {
34
34
  _onLoad = onLoad;
35
35
 
36
36
  [self emitLoaded];
@@ -19,7 +19,7 @@
19
19
  RCT_EXPORT_MODULE(VolcView)
20
20
 
21
21
  // 导出 events
22
- RCT_EXPORT_VIEW_PROPERTY(onLoad, RCTBubblingEventBlock)
22
+ RCT_EXPORT_VIEW_PROPERTY(onViewLoad, RCTBubblingEventBlock)
23
23
 
24
24
  // 导出 events
25
25
  RCT_CUSTOM_VIEW_PROPERTY(viewId, NSString, VeUIView)