More Premium Hugo Themes Premium React Themes

React Native Cross Platform Starter

One codebase to build for iOS, Android, Web and Desktop with React-Native

React Native Cross Platform Starter

One codebase to build for iOS, Android, Web and Desktop with React-Native

Author Avatar Theme by t18n
Github Stars Github Stars: 131
Last Commit Last Commit: Jan 16, 2022 -
First Commit Created: Jan 15, 2024 -
default image

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:

  1. Clone the repository: git clone git@github.com:turbothinh/react-native-cross-platform-starter.git && cd react-native-cross-platform-starter
  2. Install dependencies: yarn && yarn app:dep
  3. Run the app:
    • In terminal 1, run packager with yarn app:start.
    • In terminal 2, run yarn ios for iOS or yarn android for Android. Do not run both commands simultaneously.
  4. Run on web: Execute yarn web:dev to run the app on the web.
  5. Run on desktop: Use yarn electron to run the app on desktop.
  6. 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.

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.