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 IReactModule2

interface IReactModule2
Extends IReactModule Module interface for KeplerScript that extends IReactModule with typeface registration. Custom typeface registration is unavailable on platforms that do not expose this interface; IReactModule provides no equivalent facility. Callers that support those platforms should query IReactModule for the rest of the module surface and treat custom typeface registration as unsupported there.

Methods

getTypefaceRegistry()

ITypefaceRegistry* getTypefaceRegistry()
Gets the TypefaceRegistry instance for registering and unregistering custom typefaces. The registry is instantiated during application startup. This method may be called from any thread. The returned ITypefaceRegistry must be used on the UI thread, as documented on that interface.

Returns

ITypefaceRegistry* The ITypefaceRegistry instance.

Throws

  • BaseError — If the registry is not yet initialized because application startup has not completed.

Last modified on October 29, 2026