react-navigation / react-navigation/react-navigation.github.io

Feature request: add a functional version of the example code

Open
#719 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
324
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

With the increasing adoption of functional components and React hooks (including now its support in recent versions of the Expo SDK) it would be great if the there's an option to view a functional version of the code examples in the documentation.
(Such as in this page, at the bottom: https://reactnative.dev/docs/next/backhandler)
More and more projects no longer use class-based components and the conversion can troublesome specially for less experienced developers.
Note: I'm using version 4 of the docs

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the BackHandler documentation page linked in the issue and review its example code and surrounding documentation. Done means the relevant documentation offers a functional-components and hooks version of the example alongside the existing class-based version.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, react-native
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.