Skip to content

Add support for iOS 14/Android Homescreen Widgets #250

Open
@mrousavy

Description

@mrousavy

Introduction

Yesterday (June 22nd) Apple held it's yearly WWDC. They announced Widgets for the Homescreen, which can display small amount of information about your app. The photos app for example, shows recently added photos. Wheather app shows current wheather. Android had this concept of Widgets for a long time now, so I'd assume it would make sense for a unified way of creating widgets using React Native.

Details

Apple has a good documentation on Widgets here, and the Android docs can be found here. They are both similarily structured, which makes a cross-platform approach pretty logical.

It would make sense to create a React Native Component which is very lightweight (memory limit?) to run for the widget, since all of the business logic is in the JS codebase anyways. When creating a Widget natively, you have to re-implement most of your business logic such as datafetching, etc. (or don't use React Native).

Discussion points

  • Should React Native support things other than the immediate app itself? The "Today's View" Widgets are not supported by React Native either, there's a separate library for this. (Which only supports iOS)
  • Is it too much effort?
  • Does it clutter up the codebase?
  • Is there enough demand?
  • Are we going to run out of memory if using JS + React in a small widget?

Metadata

Metadata

Assignees

No one assigned

    Labels

    🗣 DiscussionThis label identifies an ongoing discussion on a subject

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions