meliorence / meliorence/react-native-image-gallery

Support for defaultProps will be removed from function components in future major release

Open
#172 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
717
Forks
298
PR merge metrics
No merged PRs in 30d

Description

Error is generated with the latest versioon of react native.

Warning: ImageGallery: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
{
"dependencies": {
    "react": "18.3.1",
    "react-dom": "18.3.1",
    "react-native": "0.76.2",
    "react-native-reanimated": "^3.16.1",
    "react-native-safe-area-context": "4.14.0",
    "react-native-screens": "^4.0.0",
    "react-native-svg": "15.9.0",
    "react-native-web": "~0.19.6",
    "typescript": "~5.6.3"
  }

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

No file or test is named. Start by locating the ImageGallery function component and its use of defaultProps, then verify the warning under the dependency versions listed; done means the warning no longer appears while the component still provides its defaults.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, react-native
Domain
frontend, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.