react-native-unified-player 1.0.5 → 1.0.6

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.
@@ -1,8 +1,5 @@
1
1
  "use strict";
2
2
 
3
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
4
- export default codegenNativeComponent('RNCVideoView', {
5
- interfaceOnly: true,
6
- paperComponentName: 'RNCVideoView'
7
- });
3
+ import { requireNativeComponent } from 'react-native';
4
+ export default requireNativeComponent('RNCVideoView');
8
5
  //# sourceMappingURL=VideoViewNativeComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["codegenNativeComponent","interfaceOnly","paperComponentName"],"sourceRoot":"../../../../src","sources":["spec/fabric/VideoViewNativeComponent.ts"],"mappings":";;AAKA,OAAOA,sBAAsB,MAAM,yDAAyD;AAW5F,eAAeA,sBAAsB,CAAsB,cAAc,EAAE;EACzEC,aAAa,EAAE,IAAI;EACnBC,kBAAkB,EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["requireNativeComponent"],"sourceRoot":"../../../../src","sources":["spec/fabric/VideoViewNativeComponent.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAwB,cAAc;AAYrE,eAAeA,sBAAsB,CACnC,cACF,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export declare const NativeVideoView: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<import("../../spec/fabric/VideoViewNativeComponent").ViewViewNativeProps> | (() => never);
1
+ export declare const NativeVideoView: import("react-native").HostComponent<import("../../spec/fabric/VideoViewNativeComponent").ViewViewNativeProps> | (() => never);
2
2
  //# sourceMappingURL=NativeVideoView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeVideoView.d.ts","sourceRoot":"","sources":["../../../../../src/core/video-view/NativeVideoView.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,eAAe,iLAKrB,CAAC"}
1
+ {"version":3,"file":"NativeVideoView.d.ts","sourceRoot":"","sources":["../../../../../src/core/video-view/NativeVideoView.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,eAAe,gIAKrB,CAAC"}
@@ -1,12 +1,14 @@
1
- import type { ViewProps } from 'react-native';
2
- import type { DirectEventHandler, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
1
+ import { type ViewProps } from 'react-native';
2
+ import type { HostComponent } from 'react-native';
3
3
  type OnNitroIdChangeEvent = Readonly<{
4
- nitroId: Int32;
4
+ nitroId: number;
5
5
  }>;
6
6
  export interface ViewViewNativeProps extends ViewProps {
7
- nitroId: Int32;
8
- onNitroIdChange?: DirectEventHandler<OnNitroIdChangeEvent>;
7
+ nitroId: number;
8
+ onNitroIdChange?: (event: {
9
+ nativeEvent: OnNitroIdChangeEvent;
10
+ }) => void;
9
11
  }
10
- declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<ViewViewNativeProps>;
12
+ declare const _default: HostComponent<ViewViewNativeProps>;
11
13
  export default _default;
12
14
  //# sourceMappingURL=VideoViewNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VideoViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../src/spec/fabric/VideoViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,kBAAkB,EAClB,KAAK,EACN,MAAM,2CAA2C,CAAC;AAGnD,KAAK,oBAAoB,GAAG,QAAQ,CAAC;IACnC,OAAO,EAAE,KAAK,CAAC;CAChB,CAAC,CAAC;AAEH,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,OAAO,EAAE,KAAK,CAAC;IACf,eAAe,CAAC,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;CAC5D;;AAED,wBAGG"}
1
+ {"version":3,"file":"VideoViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../src/spec/fabric/VideoViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,KAAK,oBAAoB,GAAG,QAAQ,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEH,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,oBAAoB,CAAA;KAAE,KAAK,IAAI,CAAC;CAC1E;wBAII,aAAa,CAAC,mBAAmB,CAAC;AAFvC,wBAEwC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-unified-player",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Unified Player",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",
@@ -1,20 +1,15 @@
1
- import type { ViewProps } from 'react-native';
2
- import type {
3
- DirectEventHandler,
4
- Int32,
5
- } from 'react-native/Libraries/Types/CodegenTypes';
6
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1
+ import { requireNativeComponent, type ViewProps } from 'react-native';
2
+ import type { HostComponent } from 'react-native';
7
3
 
8
4
  type OnNitroIdChangeEvent = Readonly<{
9
- nitroId: Int32;
5
+ nitroId: number;
10
6
  }>;
11
7
 
12
8
  export interface ViewViewNativeProps extends ViewProps {
13
- nitroId: Int32;
14
- onNitroIdChange?: DirectEventHandler<OnNitroIdChangeEvent>;
9
+ nitroId: number;
10
+ onNitroIdChange?: (event: { nativeEvent: OnNitroIdChangeEvent }) => void;
15
11
  }
16
12
 
17
- export default codegenNativeComponent<ViewViewNativeProps>('RNCVideoView', {
18
- interfaceOnly: true,
19
- paperComponentName: 'RNCVideoView',
20
- });
13
+ export default requireNativeComponent<ViewViewNativeProps>(
14
+ 'RNCVideoView'
15
+ ) as HostComponent<ViewViewNativeProps>;