awesome-react-native
awesome-react-native copied to clipboard
Components should be separate Android and iOS
Thanks for the feedback. Yes, we are nearing the threshold where we want to split the components - however instead of splitting - the plan is to badge each component with iOS/Android badge as suitable. Currently I am inspecting ways to automatically detect if a component is iOS/Android or both. Any help with automatic badging would be appreciated.
In React.parts, we have the same problem right now. Like @jondot, we decided to use tags instead of separated sections.
We are currently using languages from the GitHub API. If the repo has Objective-C code, we add an ios tag. If the repo has Java code, we add an android tag. If there's neither, we assume it's entirely written in JavaScript and that it works in both platforms. But it's far from ideal. We have various components that are incorrectly tagged, and this approach only works for components hosted on GitHub.
Many authors also use the ios and android keywords in their package.json files which is also useful.