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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@the-bubbles-company/bubbles-react-native-bridge

v1.4.0

Published

React Native bridge for Bubbles

Readme

react-native-bubbles-react-bridge

Getting started

$ npm i @the-bubbles-company/bubbles-react-native-bridge -S

Mostly automatic installation

$ react-native link @the-bubbles-company/bubbles-react-native-bridge

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modules@the-bubbles-company/bubbles-react-native-bridge and add RNBubblesReactBridge.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNBubblesReactBridge.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNBubblesReactBridgePackage; to the imports at the top of the file
  • Add new RNBubblesReactBridgePackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-bubbles-react-bridge'
    project(':react-native-bubbles-react-bridge').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-bubbles-react-bridge/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-bubbles-react-bridge')

Usage

import RNBubblesReactBridge from '@the-bubbles-company/bubbles-react-native-bridge';

// TODO: What to do with the module?
RNBubblesReactBridge;

React Bridge API

Structures

Beacon

{
    uuid: "F3077ABE93AC465AACF167F080CB7AEF",
    minor: "CF2F",
    major: "3566",
    event: "IN_NEAR_REGION"
}
Parameters:

Name | Type | Attributes | Default | Description -|-|-|-|- uuid | String | | | Beacon UUID in Hexadecimal minor | String | | | Beacon minor in Hexadecimal major | String | | | Beacon major in Hexadecimal event | String | | | Beacon event: ["ENTER", "EXIT", "IN_FAR_REGION", "IN_NEAR_REGION", "IN_IMMEDIATE_REGION"]

Service

{
    identifier: "IBC01SRV000000000099",
    name: "Test Service",
    description: "Test Service Description",
    pictoURL: "http://api-sdk.staging.bubbles-company.com/assets/img/service/assets/IBC01SRV000000000099/base/X4/picto_5943a7bbaa425998002626.png?date=20170110",
    pictoSplashURL: "http://api-sdk.staging.bubbles-company.com/assets/img/service/assets/IBC01SRV000000000099/base/X4/picto_splashscreen_5943a7bbc1355691342929.png?date=20170110",
    pictoColor: "#45CEDA"
}
Parameters:

Name | Type | Attributes | Default | Description -|-|-|-|- identifier | String | | | Service identifier name | String | | | Service name description | String | | | Service description pictoURL | String | | | Service picto URL pictoSplashURL | String | | | Service splash picto URL pictoColor | String | | | Service picto color

Call from React to Phone OS

log(data)

Displays a log in the application's log system for debug purpose.

Parameters:

Name | Type | Attributes | Default | Description -|-|-|-|- data | String | | | Data to add on application log

Callbacks:

No Callbackss

Event Listener:

No Event Listener

reactIsUpToDate()

On Android only

Needs to be called when the React part is up to date (CodePush integration).

Parameters:

No Parameters

Callbacks:

No Callbackss

Event Listener:

No Event Listener

getVersion()

Gets the application's current Bridge version.

Parameters:

No Parameters

Callbacks:

Resolve:

Name | Type | Attributes | Default | Description -|-|-|-|- version | String | | | Application Bridge version

Reject 1:

Name | Type | Attributes | Default | Description -|-|-|-|- code | Integer | | | Error code 0 message | String | | | Error message JSON Exception

Reject 2:

Name | Type | Attributes | Default | Description -|-|-|-|- code | Integer | | | Error code 2 message | String | | | Error message Version not found

Event Listener:

No Event Listener

getServices()

Asks for the Services list.

Parameters:

No Parameters

Callbacks:

Resolve:

Name | Type | Attributes | Default | Description -|-|-|-|- services | Array | | | Services array services.row | Service | | | Service object

Reject:

Name | Type | Attributes | Default | Description -|-|-|-|- code | Integer | | | Error code 0 message | String | | | Error message JSON Exception

Event Listener:

No Event Listener

fetchServices()

Asks the application to update the Services list.

Parameters:

No Parameters

Callbacks:

No Callbackss

Event Listener:

See onServicesChange

openService(service_id)

Asks the application to open a specific Service.

Parameters:

Name | Type | Attributes | Default | Description -|-|-|-|- serviceId | String | | | Service identifier

Callbacks:

Resolve:

Name | Type | Attributes | Default | Description -|-|-|-|- success | Boolean | | | Return false when service not found

Reject 1:

Name | Type | Attributes | Default | Description -|-|-|-|- code | Integer | | | Error code 0 message | String | | | Error message JSON Exception

Reject 2:

Name | Type | Attributes | Default | Description -|-|-|-|- code | Integer | | | Error code 1 message | String | | | Error message Unknown Service

Event Listener:

No Event Listener

closeService()

Asks the application to close the current Service.

Parameters:

No Parameters

Callbacks:

No Callbackss

Event Listener:

No Event Listener

getBeaconsAround()

Retrieves the Beacons list detected by the phone.

Parameters:

No Parameters

Callbacks:

Resolve:

Name | Type | Attributes | Default | Description -|-|-|-|- beacons | Array | <optional> | [] | Beacons array beacons.row | Beacon | | | Beacons object

Reject:

Name | Type | Attributes | Default | Description -|-|-|-|- code | Integer | | | Error code 0 message | String | | | Error message JSON Exception

Event Listener:

No Event Listener

getBluetoothState()

Gets the phone's Bluetooth state.

Parameters:

No Parameters

Callbacks:

Resolve:

Name | Type | Attributes | Default | Description -|-|-|-|- isActivated | Boolean | | | Return Bluetooth state

Reject:

Name | Type | Attributes | Default | Description -|-|-|-|- code | Integer | | | Error code 0 message | String | | | Error message JSON Exception

Event Listener:

No Event Listener

getLocalizationPermissionState()

Gets phone's Localization permission state.

Parameters:

No Parameters

Callbacks:

Resolve:

Name | Type | Attributes | Default | Description -|-|-|-|- is_authorized | Boolean | | | Return Permission state

Reject:

Name | Type | Attributes | Default | Description -|-|-|-|- code | Integer | | | Error code 0 message | String | | | Error message JSON Exception

Event Listener:

No Event Listener

askForLocalizationPermission()

Asks for phone's Localization permission.

Parameters:

No Parameters

Callbacks:

No callbacks

Event Listener:

See onLocalizationPermissionChange

askForUniqueIdPermission()

On Android only

Asks for phone's Unique Id permission.

Parameters:

No Parameters

Callbacks:

No callbacks

Event Listener:

See onSendUniqueId

enableBluetooth()

Asks application to enable the Bluetooth (without prompting it to the user).

Parameters:

No Parameters

Callbacks:

Resolve:

Name | Type | Attributes | Default | Description -|-|-|-|- enabled | Boolean | | | Bluetooth has been enabled successfully

Reject 1:

Name | Type | Attributes | Default | Description -|-|-|-|- code | Integer | | | Error code 0 message | String | | | Error message JSON Exception

Reject 2:

Name | Type | Attributes | Default | Description -|-|-|-|- code | Integer | | | Error code 3 message | String | | | Error message Impossible to activate Bluetooth

Reject 3:

Name | Type | Attributes | Default | Description -|-|-|-|- code | Integer | | | Error code 4 message | String | | | Error message Bluetooth already activated

Event Listener:

No Event Listener

Call from Phone OS to React

onServicesChange(success, services)

Triggers when the Services list is updated.

Parameters:

No Parameters

Callbackw:

No Callbacks

Event Listener:

If succeeded:

Name | Type | Attributes | Default | Description -|-|-|-|- services | Array | | | Service list services.row | Service | | | Service object

If failed:

Name | Type | Attributes | Default | Description -|-|-|-|- success | Array | | | false message | String | | | Error message

onBeaconChange()

Triggers any Beacon data change.

Parameters:

No Parameters

Callbacks:

No Callbacks

Event Listener:

Name | Type | Attributes | Default | Description -|-|-|-|- beacon | Beacon | | | Beacon new state

onBluetoothStateChange()

Triggers when the Bluetooth state changes.

Parameters:

No Parameters

Callbacks:

No Callbacks

Event Listener:

Name | Type | Attributes | Default | Description -|-|-|-|- isActivated | Boolean | | | Bluetooth state

onLocalizationPermissionChange(success)

Triggers after that the permission question is answered by the user.

Parameters:

No Parameters

Callbacks:

No Callbacks

Event Listener:

Name | Type | Attributes | Default | Description -|-|-|-|- isAuthorized | Boolean | | | Return false if user refuse

onSendUniqueId()

On Android only

Triggers after that the permission question is answered by the user.

Parameters:

No Parameters

Callbacks:

No Callbacks

Event Listener:

Name | Type | Attributes | Default | Description -|-|-|-|- isAuthorized | Boolean | | | Return false if user refuse