Skip to content

Commit

Permalink
docs: Add HybridObject import to nitrogen docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Nov 12, 2024
1 parent e37d261 commit 5038497
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/nitrogen.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ Nitrogen parses all TypeScript files that end in `.nitro.ts`.
For example, let's create `Math.nitro.ts`:

```ts title="Math.nitro.ts"
import { type HybridObject } from 'react-native-nitro-modules'

interface Math extends HybridObject<{ ios: 'swift', android: 'kotlin' }> {
add(a: number, b: number): number
}
Expand Down

0 comments on commit 5038497

Please sign in to comment.