You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Except this will break on Android as it expects a key of id. Android will fail silently and the shortcut will not appear when the app icon is long-pressed.
will work for both platforms but is prone to error.
Suggested fix is to standardize how a dynamic shortcut is defined on RN side, and do proper conversions in the bridging code for the respective platforms.
The text was updated successfully, but these errors were encountered:
Documentation states that dynamic shortcuts can be defined as below.
This will throw an unexpected error on iOS
Because iOS requires the keys
type
andtitle
.Workaround would be to define the dynamic shortcut as
Except this will break on Android as it expects a key of
id
. Android will fail silently and the shortcut will not appear when the app icon is long-pressed.Defining dynamic shortcut as
will work for both platforms but is prone to error.
Suggested fix is to standardize how a dynamic shortcut is defined on RN side, and do proper conversions in the bridging code for the respective platforms.
The text was updated successfully, but these errors were encountered: