Last active
February 2, 2024 18:01
-
-
Save Blocklisupport/89542cc9654061106044e1c887b83225 to your computer and use it in GitHub Desktop.
blockli-updated-index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { NativeModules } from "react-native"; | |
const { RNCustomCode } = NativeModules; | |
import { initialize } from "@blocklienterprise/blockli"; | |
import config from "@src/build_config.json"; | |
export const applyCustomCode = async (externalCodeSetup) => { | |
const blockli_config = { | |
license: "XXXXXXXXXXXXXXX", // Enter your 15 digit Blockli App Kit license key here. See your account dashboard at https://blockli.dev/dashboard | |
app_id: config.app_id, | |
code: externalCodeSetup, | |
bcdn_token: "BUNNYCDN-TOKEN-AUTH-KEY"", | |
website: "https://example-site.com", // Enter your app domain here with NO trailing slash. | |
// NOTE: If you have a staging site, please use a different Git branch for your test app and COPY this entire code to the test branch and enter the staging site domain. | |
}; | |
const components = { | |
// ... other styles and components | |
}; | |
await initialize(blockli_config, components); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment