Building Apps with Jigx
UI

Home Hub

2min

Having a good home screen is essential for any mobile app as it is the first screen that users see when they open the app. A home screen should provide users with quick access to the most important features of the app, while also being visually appealing and easy to navigate. It should be intuitive and provide users with a clear understanding of what the app does and how to use it. Careful consideration should be given during the design process. In the home screen is called and is accessed after signing into the app.

allows you to use various options when personalizing your . There are three main elements used:

  1. Widgets
  2. Stories
  3. Custom Home Hub (Single )
  • The widgets are available in 5 different sizes: 1x1, 2x2, 4x2, 2x4, and 4x4.
  • The jigId property refers to the name of the we are using.
  • There is also an optional property when that allows the widget to be displayed/hidden in a particular situation based on the expression.
  • Add an onPress event to a widget to configure an action such as open-url without going to .
Home hub
Home hub

index.jigx
index.jigx (with onPress)

  • Stories are usually used in combination with widgets.
  • If you are using more than one story, they will be stacked into the horizontal list. To get to the next story swipe left .
  • Stories are created in a and the included in the by referencing the name of the .



First story on home hub
First story on home hub

Second story on home hub
Second story on home hub

Stories

  • The home property allows you to use a single as your . If you want to create a Custom Home Hub you create a and reference the under the home property.
  • It's often used in combination with widgets/ widgets + stories - This setup allows you to switch between the and widgets view (using the options in the navigation bar)
  • It includes:
    • instanceId - the unique identifier of your component.
    • jigId - the name of the you are using.
    • when - the condition when this view will be displayed/hidden (optional).
Home Hub when offline
Home Hub when offline

Home Hub when online
Home Hub when online

Home






Updated 31 May 2024
Doc contributor
Doc contributor
Did this page help you?