diff --git a/README.md b/README.md index bc974a9..ca1a66f 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,21 @@ # react-native-draco -library for compressing and decompressing 3D geometric meshes and point clouds in React Native +React Native bindings for [Draco](https://github.com/google/draco) - a library for compressing and decompressing 3D geometric meshes and point clouds. ## Installation ```sh -npm install react-native-draco +yarn add @callstack/react-native-draco ``` ## Usage +For documentation on how to use the Draco library, please refer to the [official documentation](https://google.github.io/draco/). ```js -import { multiply } from 'react-native-draco'; - -// ... - -const result = multiply(3, 7); +const decoderModule = DracoDecoderModule(); +const buffer = new decoderModule.DecoderBuffer(); +buffer.Init(byteArray, byteArray.length); ``` diff --git a/package.json b/package.json index 69f3ec0..2501223 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "react-native-draco", + "name": "@callstack/react-native-draco", "version": "0.1.0", "description": "library for compressing and decompressing 3D geometric meshes and point clouds in React Native", "source": "./src/index.tsx", @@ -24,6 +24,7 @@ "android", "ios", "cpp", + "libs", "*.podspec", "react-native.config.json", "!ios/build", diff --git a/yarn.lock b/yarn.lock index 4b71f36..010c003 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1584,6 +1584,37 @@ __metadata: languageName: node linkType: hard +"@callstack/react-native-draco@workspace:.": + version: 0.0.0-use.local + resolution: "@callstack/react-native-draco@workspace:." + dependencies: + "@commitlint/config-conventional": ^17.0.2 + "@evilmartians/lefthook": ^1.5.0 + "@react-native/eslint-config": ^0.73.1 + "@release-it/conventional-changelog": ^5.0.0 + "@types/jest": ^29.5.5 + "@types/react": ^18.2.44 + commitlint: ^17.0.2 + del-cli: ^5.1.0 + eslint: ^8.51.0 + eslint-config-prettier: ^9.0.0 + eslint-plugin-prettier: ^5.0.1 + jest: ^29.7.0 + prettier: ^3.0.3 + react: 18.3.1 + react-native: 0.76.1 + react-native-builder-bob: ^0.30.3 + release-it: ^15.0.0 + ts-node: ^10.9.2 + turbo: ^1.10.7 + typescript: ^5.2.2 + zx: ^8.1.9 + peerDependencies: + react: "*" + react-native: "*" + languageName: unknown + linkType: soft + "@commitlint/cli@npm:^17.8.1": version: 17.8.1 resolution: "@commitlint/cli@npm:17.8.1" @@ -11277,37 +11308,6 @@ __metadata: languageName: unknown linkType: soft -"react-native-draco@workspace:.": - version: 0.0.0-use.local - resolution: "react-native-draco@workspace:." - dependencies: - "@commitlint/config-conventional": ^17.0.2 - "@evilmartians/lefthook": ^1.5.0 - "@react-native/eslint-config": ^0.73.1 - "@release-it/conventional-changelog": ^5.0.0 - "@types/jest": ^29.5.5 - "@types/react": ^18.2.44 - commitlint: ^17.0.2 - del-cli: ^5.1.0 - eslint: ^8.51.0 - eslint-config-prettier: ^9.0.0 - eslint-plugin-prettier: ^5.0.1 - jest: ^29.7.0 - prettier: ^3.0.3 - react: 18.3.1 - react-native: 0.76.1 - react-native-builder-bob: ^0.30.3 - release-it: ^15.0.0 - ts-node: ^10.9.2 - turbo: ^1.10.7 - typescript: ^5.2.2 - zx: ^8.1.9 - peerDependencies: - react: "*" - react-native: "*" - languageName: unknown - linkType: soft - "react-native-test-app@npm:^3.10.18": version: 3.10.18 resolution: "react-native-test-app@npm:3.10.18"