For some cross-platform projects we’re working on (mobile and web), we’re using ReactXP. One of the aspects we like is that when we need platform-specific implementations for a ReactXP Extension, we simply follow a naming convention and ReactXP will choose the implementation appropriately. The convention is to use index.tsx for Web, index.ios.tsx for iOS, and index.android.tsx for Android.
index.tsx: import component for Web
index.ios.tsx: import component for iOS
index.android.tsx: import component for Android
Note: In most situations you will use the same component for Android and iOS (React Native)
Using the sample extension: