npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-alive-push

v0.1.3

Published

[react-native-alive-push-cli使用文档](./doc/cli.md)

Downloads

15

Readme

react-native-alive-push

react-native-alive-push-cli使用文档

npm version npm license npm download npm download

Getting started

$ npm install react-native-alive-push --save

alive-push安装好之后默认会进行link,如果link失败请手动link

Mostly automatic installation

$ react-native link react-native-alive-push

快速使用

import React,{Component} from "react"
import {AppRegistry} from "react-native"
import alivepush from "react-native-alive-push"

class App extends Component{
    ...
}

const AlivePushApp=alivepush({
    deployment:""
})(App)

AppRegistry.registerComponent('TestAlivePush', () => AlivePushApp);

集成

Android

需要重写getJSBundleFile方法

@Nullable
@Override
protected String getJSBundleFile() {
    return RNAlivePushModule.getJSBundleFile(MainApplication.this);
}

IOS

在AppDelegate.m中添加

#import "RNAlivePush.h"

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
    ...
    NSURL *jsCodeLocation = [RNAlivePush getJSBundleFile];
    ...
} 

Change

0.0.3 ~ 0.0.8

  • 更新包的目录结构调整.APPLICATION_DATA_DIR/INNER_VERSION调整为APPLICATION_DATA_DIR/VERSION_NAME/INNER_VERSION
  • 更新了android的package name并修改了android的部分bug
  • checkupdate的时候不使用缓存(url添加随机数)
  • 添加了debug模式
  • 修复了IOS安装的问题
  • 修改IOS奔溃问题

0.0.2

  • android/ios alivepush配置文件添加了versionName后缀
  • android支持asset-dest bundle
  • 修改了下载完成后feedback失败的bug
  • 修改了覆盖安装时访问老版本的bug
  • 优化了alive-push代码

交流群