react-navigation.github.io icon indicating copy to clipboard operation
react-navigation.github.io copied to clipboard

Update typescript.md

Open saeid-elio opened this issue 1 year ago • 1 comments

Without <{}> TypeScript compiler shows this error: Generic type 'NavigationContainerRef' requires 1 type argument(s).ts(2314)

READ ME PLEASE

TL;DR: Make sure to add your changes to versioned docs

Thanks for opening a PR!

The docs cover several versions of react-navigation, and in some cases there are several files (for version 1, version 2 and etc.) that all describe a single page of the docs (eg. "Getting Started").

Please make sure that the edit you're making in docs/file-you-edited.md is also included in the file for the correct version, eg. /versioned_docs/version-3.x/file-you-edited.md for version 3. If such file doesn't exist, please create it. :+1:

saeid-elio avatar Sep 12 '24 12:09 saeid-elio

Deploy Preview for react-navigation-docs failed.

Name Link
Latest commit 3c079587e8dde847c0f7063e1377f00fb5cb3937
Latest deploy log https://app.netlify.com/sites/react-navigation-docs/deploys/66e2d8df56db530008bf2908

netlify[bot] avatar Sep 12 '24 12:09 netlify[bot]

Thanks for the PR. This page is for 5.x where NavigationContainerRef didn't accept any parameter, so this is not correct. The documentation for 6.x and onwards already includes the parameter.

satya164 avatar Jan 09 '26 14:01 satya164