meliorence / meliorence/react-native-image-gallery

React-native and tree shaking

Open
#84 0 comments 0 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

Hi,

I've been doing some experiments with tree shaking and I found one problem with the way that react-native was being imported in one of the modules in this project. I created a PR which adjusts the import slightly to be compatible with modern tree shakers. Its a very simple change, just importing the only used part of react-native instead of the whole exported object.

Would you be willing to take the commit, please check out #83

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 by reviewing PR #83 and the React Native import described in this issue. Done when the module imports only the used React Native part and remains compatible with tree shaking.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.