@momo-kits/camerakit 0.160.1-rn.84 → 0.161.2-beta.1

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 (2) hide show
  1. package/package.json +8 -8
  2. package/src/index.ts +16 -24
package/package.json CHANGED
@@ -1,25 +1,26 @@
1
1
  {
2
2
  "name": "@momo-kits/camerakit",
3
- "version": "0.160.1-rn.84",
4
- "description": "A high performance, fully featured, rock solid camera library for React Native applications",
5
- "license": "MIT",
3
+ "version": "0.161.2-beta.1",
6
4
  "repository": {
7
5
  "type": "git",
8
6
  "url": "https://github.com/teslamotors/react-native-camera-kit.git"
9
7
  },
10
- "main": "./src/index.ts",
11
8
  "publishConfig": {
12
9
  "registry": "https://registry.npmjs.org/"
13
10
  },
11
+ "description": "A high performance, fully featured, rock solid camera library for React Native applications",
12
+ "nativePackage": true,
14
13
  "scripts": {
15
14
  "build": "echo",
16
15
  "test": "jest",
17
16
  "lint": "yarn eslint -c .eslintrc.js"
18
17
  },
18
+ "main": "./src/index.ts",
19
19
  "dependencies": {},
20
+ "license": "MIT",
20
21
  "devDependencies": {
21
- "react": "19.2.3",
22
- "react-native": "0.84.1"
22
+ "react": "19.0.0",
23
+ "react-native": "0.80.1"
23
24
  },
24
25
  "peerDependencies": {
25
26
  "react": "*",
@@ -28,7 +29,6 @@
28
29
  "engines": {
29
30
  "node": ">=18"
30
31
  },
31
- "packageManager": "yarn@1.22.22",
32
32
  "codegenConfig": {
33
33
  "name": "rncamerakit_specs",
34
34
  "type": "all",
@@ -37,5 +37,5 @@
37
37
  "javaPackageName": "com.rncamerakit"
38
38
  }
39
39
  },
40
- "nativePackage": true
40
+ "packageManager": "yarn@1.22.22"
41
41
  }
package/src/index.ts CHANGED
@@ -1,30 +1,22 @@
1
- import CameraKit from "./Camera";
1
+ import CameraKit from './Camera';
2
2
  import {
3
- type CameraApi,
4
- CameraType,
5
- type CaptureData,
6
- type FlashMode,
7
- type FocusMode,
8
- type ResizeMode,
9
- type TorchMode,
10
- type ZoomMode,
11
- } from "./types";
3
+ CameraType,
4
+ type CameraApi,
5
+ type CaptureData,
6
+ type FlashMode,
7
+ type FocusMode,
8
+ type TorchMode,
9
+ type ZoomMode,
10
+ type ResizeMode,
11
+ } from './types';
12
12
 
13
13
  // Start with portrait/pointing up, increment while moving counter-clockwise
14
14
  export const Orientation = {
15
- PORTRAIT: 0, // ⬆️
16
- LANDSCAPE_LEFT: 1, // ⬅️
17
- PORTRAIT_UPSIDE_DOWN: 2, // ⬇️
18
- LANDSCAPE_RIGHT: 3, // ➡️
15
+ PORTRAIT: 0, // ⬆️
16
+ LANDSCAPE_LEFT: 1, // ⬅️
17
+ PORTRAIT_UPSIDE_DOWN: 2, // ⬇️
18
+ LANDSCAPE_RIGHT: 3, // ➡️
19
19
  };
20
20
 
21
- export type {
22
- CameraApi,
23
- CaptureData,
24
- FlashMode,
25
- FocusMode,
26
- ResizeMode,
27
- TorchMode,
28
- ZoomMode,
29
- };
30
- export { CameraKit, CameraType };
21
+ export { CameraKit };
22
+ export type { CameraType, TorchMode, FlashMode, FocusMode, ZoomMode, CameraApi, CaptureData, ResizeMode };