Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Use platform files

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

Nobody has claimed this yet.

Assessment

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

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.

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.

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

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.

More from mattermost/react-native-paste-input

All issues in mattermost/react-native-paste-input

Similar issues

More Objective-C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.