Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IPropsRegistryBuilder

interface IPropsRegistryBuilder
Extends com.amazon.apmf.IStandard Builder for adding different types of props for a keplerscript view manager.

Methods

stringProp()

IPropsRegistryBuilder* stringProp(string name)
Add a prop of string type. Since no default value is provided, it is compulsory to provide an explicit value from JavaScript layer.

Parameters

name
string — Required Name of the prop.

Returns

IPropsRegistryBuilder* Builder instance to continue building out the props registry.

Throws


stringPropWithDefault()

IPropsRegistryBuilder* stringPropWithDefault(string name, string defaultValue)
Add a prop of string type.

Parameters

name
string — Required Name of the prop.
defaultValue
string — Required Default value of the prop, to be picked up when there is no explicit value set from the React Native JavaScript layer of the component. The default value is automatically converted from UTF-8 to the appropriate JavaScript String.

Returns

IPropsRegistryBuilder* Builder instance to continue building out the props registry.

Throws


boolProp()

IPropsRegistryBuilder* boolProp(string name)
Add a prop of boolean type. Since no default value is provided, it is compulsory to provide an explicit value from JavaScript layer.

Parameters

name
string — Required Name of the prop.

Returns

IPropsRegistryBuilder* Builder instance to continue building out the props registry.

Throws


boolPropWithDefault()

IPropsRegistryBuilder* boolPropWithDefault(string name, bool defaultValue)
Add a prop of boolean type.

Parameters

name
string — Required Name of the prop.
defaultValue
bool — Required Default value of the prop, to be picked up when there is no explicit value set from the React Native JavaScript layer of the component.

Returns

IPropsRegistryBuilder* Builder instance to continue building out the props registry.

Throws


doubleProp()

IPropsRegistryBuilder* doubleProp(string name)
Add a prop of IEEE 754 double type, except that all IEEE 754 NaN values are mapped to the single JavaScript NaN value. +/- infinities are mapped to +/- infinities in JavaScript. Since no default value is provided, it is compulsory to provide an explicit value from JavaScript layer.

Parameters

name
string — Required Name of the prop.

Returns

IPropsRegistryBuilder* Builder instance to continue building out the props registry.

Throws


doublePropWithDefault()

IPropsRegistryBuilder* doublePropWithDefault(string name, double defaultValue)
Add a prop of IEEE 754 double type, except that all IEEE 754 NaN values are mapped to the single JavaScript NaN value. +/- infinities are mapped to +/- infinities in JavaScript.

Parameters

name
string — Required Name of the prop.
defaultValue
double — Required Default value of the prop, to be picked up when there is no explicit value set from the React Native JavaScript layer of the component.

Returns

IPropsRegistryBuilder* Builder instance to continue building out the props registry.

Throws


intProp()

IPropsRegistryBuilder* intProp(string name)
Add a prop of signed 64-bit type, except that values outside the range of Number.MIN_SAFE_INTEGER -(2**53 - 1) and Number.MAX_SAFE_INTEGER (2**53 - 1) will lose precision. Since no default value is provided, it is compulsory to provide an explicit value from JavaScript layer.

Parameters

name
string — Required Name of the prop.

Returns

IPropsRegistryBuilder* Builder instance to continue building out the props registry.

Throws


intPropWithDefault()

IPropsRegistryBuilder* intPropWithDefault(string name, i64 defaultValue)
Add a prop of signed 64-bit type, except that values outside the range of Number.MIN_SAFE_INTEGER -(2**53 - 1) and Number.MAX_SAFE_INTEGER (2**53 - 1) will lose precision.

Parameters

name
string — Required Name of the prop.
defaultValue
i64 — Required Default value of the prop, to be picked up when there is no explicit value set from the React Native JavaScript layer of the component.

Returns

IPropsRegistryBuilder* Builder instance to continue building out the props registry.

Throws


arrayProp()

IPropsRegistryBuilder* arrayProp(string name)
Add a prop of IJsArray type. Since no default value is provided, it is compulsory to provide an explicit value from JavaScript layer.

Parameters

name
string — Required Name of the prop.

Returns

IPropsRegistryBuilder* Builder instance to continue building out the props registry.

Throws


arrayPropWithDefault()

IPropsRegistryBuilder* arrayPropWithDefault(string name, IJsArray* defaultValue)
Add a prop of IJsArray type.

Parameters

name
string — Required Name of the prop.
defaultValue
IJsArray* — Required Default value of the prop, to be picked up when there is no explicit value set from the React Native JavaScript layer of the component.

Returns

IPropsRegistryBuilder* Builder instance to continue building out the props registry.

Throws


objectProp()

IPropsRegistryBuilder* objectProp(string name)
Add a prop of IJsObject type. Since no default value is provided, it is compulsory to provide an explicit value from JavaScript layer.

Parameters

name
string — Required Name of the prop.

Returns

IPropsRegistryBuilder* Builder instance to continue building out the props registry.

Throws


objectPropWithDefault()

IPropsRegistryBuilder* objectPropWithDefault(string name, IJsObject* defaultValue)
Add a prop of IJsObject type.

Parameters

name
string — Required Name of the prop.
defaultValue
IJsObject* — Required Default value of the prop, to be picked up when there is no explicit value set from the React Native JavaScript layer of the component.

Returns

IPropsRegistryBuilder* Builder instance to continue building out the props registry.

Throws


build()

IPropsRegistry* build()
Build the final props registry object.

Returns

IPropsRegistry* IPropsRegistry
Last modified on October 29, 2026