Skip to content

Commit

Permalink
docs: More precise base methosd
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Oct 7, 2024
1 parent 95553fe commit 2b5899f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/hybrid-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ interface ImageFactory extends HybridObject {

## Base Methods

Every Hybrid Object has base methods and properties:
Every Hybrid Object has base methods and properties, like `name`, `toString()` and `equals(..)`:

```ts
const math = NitroModules.createHybridObject<Math>("Math")
Expand All @@ -76,7 +76,7 @@ console.log(math.equals(anotherMath)) // true

### `dispose()`

Every Hybrid Object has a `dispose()` method.
Additionally, every Hybrid Object has a `dispose()` method.
Usually, you should not need to manually dispose Hybrid Objects as the JS garbage collector will delete any unused objects anyways.
Also, most Hybrid Objects in Nitro are just statically exported singletons, in which case they should never be deleted throughout the app's lifetime.

Expand Down

0 comments on commit 2b5899f

Please sign in to comment.