Skip to content

Commit

Permalink
docs: update references
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Nov 6, 2024
1 parent e3450d4 commit a169000
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,37 @@
# react-native-basis-universal

Basis Universal GPU Texture Codec
Basis Universal GPU Texture Codec.

This is a React Native wrapper around the [Basis Universal](https://github.com/BinomialLLC/basis_universal) library.

For documentation on the Basis Universal library, see the [official documentation](https://github.com/BinomialLLC/basis_universal).

## Installation

```sh
npm install react-native-basis-universal
yarn add @callstack/react-native-basis-universal
```

## Usage


```js
import { multiply } from 'react-native-basis-universal';

// ...

const result = multiply(3, 7);
import {
initializeBasis,
BasisEncoder,
KTX2File,
BasisFile,
} from '@callstack/react-native-basis-universal';

initializeBasis();

const basisFile = new BasisFile(new Uint8Array(image));

const width = basisFile.getImageWidth(0, 0);
const height = basisFile.getImageHeight(0, 0);
const images = basisFile.getNumImages();
const levels = basisFile.getNumLevels(0);
const has_alpha = basisFile.getHasAlpha();
```


Expand Down

0 comments on commit a169000

Please sign in to comment.