This tutorial will show you how to write custom Shoutem extensions on the Shoutem platform. It introduces the most important concepts. After completing it, you will have a running mobile app that uses the your brand new custom extension with components from the Shoutem UI Toolkit and retrieves content from the Shoutem Cloud. The final result of this tutorial-made extension is open sourced.
Here’s a preview of what the completed app will look like.
Extensions represent features in the app. The app owner picks extensions that he wants to use in his app through the Shoutem Builder. Shoutem prepared a bunch of open sourced extensions which you can easily customize to fit your needs.
We use JSX as a simpler way to write UI components with tags. Building an app screen with JSX is as easy as:
On top of React and React Native, we’re using Redux, a library which simplifies state management.
Even though we use Redux, you can use any other state management library (like MobX, or just don’t use any at all! Again, we don’t want to restrict you on how you use React Native.
The best way to understand the power of extensions, is to get your hands dirty. Let’s type some code!