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-livebundle

v1.0.0

Published

LiveBundle native module

Downloads

16

Readme

Getting started

If you aren't yet familiar with LiveBundle, you can try out the LiveBundle demo application. Otherwise, if you're already familiar with LiveBundle or don't want to bother with the demo, you can jump straight ahead.

Adding LiveBundle to your React Native application

Using npm

$ npm install react-native-livebundle

Using yarn

$ yarn add react-native-livebundle

LiveBundle has a peer dependency on react-native-camera. It relies on this native module for the QR Code scanning functionality. Therefore, you will also need to have a dependency on this package, if your application isn't already using it.

Using LiveBundle

Out of the box, LiveBundle adds a new menu item to the React Native developer menu.
If your build offers access to this menu, you can just bring it up and tap Livebundle

GitHub Logo

Tapping Scan will bring up the QR Code scanner. If this is the first time you launch the scanner and have not yet granted camera access permission, LiveBundle will ask you for this permission. You can then just scan a LiveBundle package QR Code and it will download and install the bundle contained within (if the package contains multiple bundle flavor, LiveBundle will ask you to choose which bundle flavor to install)

Tapping Reset will reset the state of the application to what it was prior to installing any LiveBundle package (for example in case a local metro server was used, it will reload the bundle from this local packager). The Reset button is only present if the application is a LiveBundle context is active (LiveBundle bundle installed or LiveBundle session active).

If you are using a LiveBundle package Deep Link rather than a QR Code, then you can just navigate to the Deep Link.

Programmatically launching LiveBundle

In case you are using builds that don't give access to the React Native developper menu, it is possible to launch LiveBundle menu programmatically, only by making the following call from your React Native application livebundle.launchUI()

Each application is different, so we cannot tell you precisely where from to make this call, but it will probably end up being done from your own application developer/debug menu.

BLE Remark: Because we support deep link, we could also expose a deep link to launch LiveBundle UI as an alternative to this. For example livebundle://menu. This would make LiveBundle available even in builds that don't expose the RN dev menu, without having to do any additional coding. Also should add instructions to launch LiveBundle menu programatically from the native side. Fringe case, but it can be done and could be useful to some.

Uploading LiveBundle packages

To generate and upload LiveBundle packages, you will need to add the LiveBundle CLI to your application project. Please refer to the README of this project for instructions about setup and configuration.

LiveBundle native module project was kickstarted using create-react-native-module tool