Each extension can export multiple values in:
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:
appparameter 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:
appDidMounthave finished. This is the place to perform any final work before the first screen is rendered.
middlewareto register in the Redux
enhancersto register in the Redux
No predefined exports are currently reserved. This part will be used once we enable the creation of React settings pages!