From 501be406fc6b12975d0e3f229f3009126b75c959 Mon Sep 17 00:00:00 2001 From: Krzysztof Moch Date: Wed, 27 Nov 2024 13:47:37 +0100 Subject: [PATCH] fix: export types --- example/tsconfig.json | 7 ++++++- package.json | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/example/tsconfig.json b/example/tsconfig.json index 304ab4e2..e2a79910 100644 --- a/example/tsconfig.json +++ b/example/tsconfig.json @@ -1,3 +1,8 @@ { - "extends": "@react-native/typescript-config/tsconfig.json" + "extends": "@react-native/typescript-config/tsconfig.json", + "compilerOptions": { + "paths": { + "react-native-video": ["../"] + } + } } diff --git a/package.json b/package.json index cfe87b22..09892598 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,8 @@ "source": "./src/index.tsx", "main": "./lib/commonjs/index.js", "module": "./lib/module/index.js", + "types": "./lib/typescript/module/src/index.d.ts", + "react-native": "src/index", "exports": { ".": { "import": {