mattermost / mattermost/react-native-paste-input
Use platform files
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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