Skip to content

configure()

Function@tryyoursize/react-native

Call once at startup with your publishable key. Register your app for the key in Studio: ios-app://<bundle id> and android-app://<package> (test mode today).

function configure(publishableKey: string, options: ConfigureOptions = {}): Promise<void>
publishableKeystringRequired

Your publishable key (pk_test_… / pk_live_…).

optionsConfigureOptionsOptional= {}
Properties
appearanceAppearanceOptional
localestringOptional

BCP 47; default: the device language.

embedOriginstringOptional

Our window's origin, for staging or local development only.

An Error for a secret key or a malformed key, before anything reaches the native side.

await configure("pk_test_…", { appearance: { variables: { borderRadius: 10 } }, locale: "es" });

Was this page helpful?