awesome-react-native icon indicating copy to clipboard operation
awesome-react-native copied to clipboard

Components should be separate Android and iOS

Open djyde opened this issue 10 years ago • 2 comments

djyde avatar Nov 14 '15 05:11 djyde

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.

jondot avatar Nov 14 '15 09:11 jondot

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.

dmfrancisco avatar Nov 15 '15 14:11 dmfrancisco