More Premium Hugo Themes Premium React Themes

Jpush React Native

JPush's officially supported React Native plugin (Android & iOS). 极光推送官方支持的 React Native 插件(Android & iOS)。

Jpush React Native

JPush's officially supported React Native plugin (Android & iOS). 极光推送官方支持的 React Native 插件(Android & iOS)。

Author Avatar Theme by jpush
Github Stars Github Stars: 1359
Last Commit Last Commit: May 8, 2025 -
First Commit Created: Feb 24, 2024 -
default image

Overview

The JPush-React-Native is a library that allows integration of JPush functionality into React Native applications. Starting from version RN-JPush 2.7.5, the library now supports TypeScript. However, due to compilation issues with RN-JCore 1.6.0, it is necessary to add configuration code to AndroidManifest.xml even from version RN-JCore 1.7.0. Installation requires linking native libraries after installation and making specific configurations for both Android and iOS platforms.

Features

  • Support for TypeScript: The library now supports TypeScript for better type safety in React Native projects.
  • Installation Notice: Users need to install jcore-react-native and link native libraries using react-native link.
  • Configuration Guide: Provides detailed instructions for configuring Android (build.gradle, settings.gradle, AndroidManifest.xml) and iOS (.xcworkspace, Podfile).

Installation

  1. If jcore-react-native is not present in the project, install it.
  2. After installation, link native libraries by running react-native link or react-native link jpush-react-native.
  3. Configure Android by modifying build.gradle, settings.gradle, AndroidManifest.xml.
  4. For iOS, update the package name in the .xcworkspace file under ios directory.
  5. For iOS with pods, execute necessary commands.
  6. Refer to MainApplication.java for Android, and AppDelegate.m for iOS integration.
  7. Reference the API in index.js file.
  8. Run example project to ensure integration is successful.

Summary

The JPush-React-Native library provides support for integrating JPush features into React Native applications. Developers can leverage its functionality to enable push notifications within their apps, with added support for TypeScript. The installation process involves linking native libraries and making platform-specific configurations for Android and iOS environments, ensuring a seamless integration experience for developers.