Package Exports
- @applicaster/zapp-react-native-bridge/QuickBrick
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@applicaster/zapp-react-native-bridge) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Zapp React Native Bridge

This package contains the interface for the Zapp App's native Module.
Available Modules
QuickBrick
sendQuickBrickEvent(eventName<String>, payload<Object?>)
Description
Sends an event from JS to the QuickBrick Communication Module.
Available events :
quickBrickReady: no payload required. This event tells the native side that the quick brick app is ready to be presented. This event must be fired, otherwise the React Native view will not appear in the app
Usage
import React from "react";
import { AppRegistry } from "react-native";
import { sendQuickBrickEvent } from "@applicaster/zapp-react-native-bridge/QuickBrick";
import { appLoader } from "...";
class App extends React.Component {
componentDidMount() {
appLoader().then(() => sendQuickBrickEvent("quickBrickReady"));
}
render() {
return (
<View>
<Text>
This app will show when the appLoader resolves, but not before
</Text>
</View>
);
}
}Contributing
In order to add a module here, simply add a folder with your native module, and document here your module and its methods
To access your module, import it with the path to your module's folder
import { MyAwesomeModuleFunction } from "@applicaster/zapp-react-native-bridge/MyAwesomeModule";