mattermost / mattermost/react-native-paste-input

Use platform files

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C
Stars
213
Forks
38
Avg merge
12h 25m
Merged PRs (30d)
1

Description

Hey, rather than using require(./android), you should just name the files index.android.tsx and index.ios.tsx and index.tsx. This makes them fully tree-shaken.

Contributor guide

Open the contributing guide

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

Compare the current platform-file loading setup with the requested index.android.tsx, index.ios.tsx, and index.tsx names. Confirm that React Native resolves the platform-specific files without require(./android) and that the resulting files are tree-shaken; the issue provides no test path, so verify the behavior through the project’s existing platform entry points.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.