mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-05-28 08:58:50 +00:00
a01d203bcb
* chore: Upgrade to Nitro 0.35.0 * Replace `bigint` with `UInt64` * chore: Regenerate specs now for Nitro 0.35.0 * fix: Use Int64 as it can be -1 * Remove unnecessary patches * fix: change duration type to number * fix: avoid mutating VideoInformation fields after init * chore: regenerate specs with new duration type * fix: use Double for duration in VideoInformation * docs: react-native-nitro-modules version * chore: update react-native-nitro-modules version (rnv & drm) --------- Co-authored-by: fnwk <filip.wnek200@gmail.com>
Instalation
To install the dependencies, run at the root of the repository:
$ bun install
Development
To start a local development server with hot-reloading, run:
$ bun run start
Deployment
Deployment is handled via GitHub Actions. Upon pushing to the master branch content from the docs directory is automatically deployed to GitHub Pages.
Custom Props
Custom props are provided by the @widlarzgroup/docusaurus-ui package and allow you to display badges and other UI elements. Custom props can be defined in three places:
1. In _category_.json (for entire categories)
{
"label": "Analytics",
"position": 7,
"customProps": {
"badgeType": "new"
}
}
2. In markdown frontmatter (for individual pages)
---
sidebar_position: 5
sidebar_label: Chapters
customProps:
plan: pro
---
3. In sidebars.ts (for sidebar items)
{
type: 'doc',
id: 'some-doc',
customProps: {
badgeType: 'new'
}
}
Available Custom Props
| Prop | Values | Description |
|---|---|---|
badgeType |
"new", "preview" |
Displays a "NEW" or "PREVIEW" badge next to the item |
plan |
"pro" |
Displays a "PRO" badge indicating premium/commercial feature |