Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(react-native-sdk): Export JitsiMeeting component

mishra048791c85812
diff --git a/react-native-sdk/.npmignore b/react-native-sdk/.npmignore
index aa1ec1ea06..c0e97de785 100644
--- a/react-native-sdk/.npmignore
+++ b/react-native-sdk/.npmignore
@@ -1 +1,6 @@
*.tgz
+tsconfig.json
+.npmrc
+.git
+.gitignore
+node_modules
diff --git a/react-native-sdk/package.json b/react-native-sdk/package.json
index c2219de23b..c368908cfe 100644
--- a/react-native-sdk/package.json
+++ b/react-native-sdk/package.json
@@ -2,7 +2,8 @@
"name": "@jitsi/react-native-sdk",
"version": "0.0.0",
"description": "React Native SDK for Jitsi Meet.",
- "main": "index.tsx",
+ "main": "dist/index.js",
+ "types": "dist/index.d.ts",
"license": "Apache-2.0",
"author": "",
"homepage": "https://jitsi.org",
@@ -92,9 +93,27 @@
"@babel/plugin-proposal-optional-chaining": "0.0.0"
},
"scripts": {
+ "build": "tsc -p tsconfig.json",
"postinstall": "node sdk_instructions.js",
- "prepare": "node prepare_sdk.js"
+ "prepare": "node prepare_sdk.js && npm run build"
},
+ "files": [
+ "dist",
+ "android",
+ "ios",
+ "index.tsx",
+ "jitsi-meet-rnsdk.podspec",
+ "prepare_sdk.js",
+ "sdk_instructions.js",
+ "update_dependencies.js",
+ "update_sdk_dependencies.js",
+ "README.md",
+ "images",
+ "sounds",
+ "lang",
+ "modules",
+ "react"
+ ],
"bugs": {
"url": "https://github.com/jitsi/jitsi-meet/issues"
},
diff --git a/react-native-sdk/tsconfig.json b/react-native-sdk/tsconfig.json
new file mode 100644
index 0000000000..79887ff4f0
--- /dev/null
+++ b/react-native-sdk/tsconfig.json
@@ -0,0 +1,17 @@
+{
+ "extends": "../tsconfig.native.json",
+ "compilerOptions": {
+ "outDir": "./dist",
+ "declaration": true,
+ "declarationMap": true,
+ "sourceMap": true,
+ "emitDeclarationOnly": false
+ },
+ "include": [
+ "index.tsx"
+ ],
+ "exclude": [
+ "node_modules",
+ "dist"
+ ]
+}