Overview:
The React Native Cross-platform Apps starter is a production-ready starter kit that allows developers to build cross-platform apps using React Native. It provides a solid foundation and includes key features such as platform compatibility, debugging tools, design components, state management, and more. With easy installation instructions, developers can quickly get started and customize the starter kit to meet their specific app requirements.
Features:
- Platforms: Build apps that run on iOS with React-Native, Android with React-Native, web with React-Native-Web, and desktop with Electron.
- Development: Test app with Jest, use absolute import paths, incorporate webpack loaders for JS, TS, fonts, and files, and utilize native debuggers like Flipper, reactotron, and redux-debugger.
- Design: Access a design system with Dark mode, use eva-icons for icons, and render semantic tags like H1, H2, H3 on the web for better SEO.
- Libraries: Utilize Redux and Redux-Toolkit for state management with persist storage, implement i18n with i18next, and incorporate tab navigation with react-navigation.
- Deep Linking: Set up deep linking in the app by following the React-Navigation guide to replace existing deep-linking prefixes with domain-specific ones.
Installation:
To install the React Native Cross-platform Apps starter, follow the below steps:
- Clone the repository:
git clone git@github.com:turbothinh/react-native-cross-platform-starter.git && cd react-native-cross-platform-starter - Install dependencies:
yarn && yarn app:dep - Run the app:
- In terminal 1, run packager with
yarn app:start. - In terminal 2, run
yarn iosfor iOS oryarn androidfor Android. Do not run both commands simultaneously.
- In terminal 1, run packager with
- Run on web: Execute
yarn web:devto run the app on the web. - Run on desktop: Use
yarn electronto run the app on desktop. - Set up your brand:
- Change the project name: Run
npx react-native-rename <your-new-project-name>inside the root folder to rename the app. - Replace the icon.png and logo.png inside the public/assets folder with your own assets. Then run
yarn generate:icon && yarn generate:bootsplash.
- Change the project name: Run
Summary:
The React Native Cross-platform Apps starter provides developers with a comprehensive toolkit for building cross-platform apps using React Native. With its range of platform compatibility, development tools, design system, libraries, and deep-linking capabilities, developers can leverage the starter kit to build robust and feature-rich mobile apps. The clear installation instructions make it easy to get started and customize the starter kit for individual project requirements. Overall, the React Native Cross-platform Apps starter is a valuable resource for developers looking to streamline their cross-platform app development process.