Stay informed
Subscribe to our newsletter if you'd like to stay informed about Shoutem Extensions and Shoutem UI Toolkit.
Each extension can export multiple values in:
The app
folder is npm package that represents segment of extension bundled in the app. The app/index.js
file is what is accessible from the current extension to the app and other extensions. Since app
expects some exported parts (e.g.) there are some predefined extension exports. Here only those will be listed, but you can read more about the whole architecture in Technical overview.
These are the predefined extension exports:
app
parameter that represents the current app instance. Each of those methods may also return a promise. If a promise is returned, the next lifecycle method of any extension will not be called until that (any every other) promise is resolved. This is the list of lifecycle methods in order of their invocation:
appDidMount
have finished. This is the place to perform any final work before the first screen is rendered.extension.json
extension.json
extension.json
middleware
to register in the Redux store
enhancers
to register in the Redux store
Same as for app
the server
folder is npm package that represents segment of extension in Shoutem Builder. The server/index.js
file is what is accessible from the current extension to the Shoutem Builder.
These are the predefined extension exports:
page
parameter that represents the current page instance. Page instance contains methods getPageContext
and getPageParameters
. This is the list of lifecycle methods in order of their invocation (we plan to support more methods):
extension.json