v1.6.2
What's Changed
- Adding notification + player card actions. by @sleeper-luke and @sleeper-jasonl in #24
This release introduces a few additional API calls and features:
- Deep link to a mini from a URL.
sleeper://mini?miniId=companyname-yourminiid
- Schedule a notification for a future timestamp. When tapped, will open the mini directly.
const notificationId = actions.scheduleNotification({
title?: string | undefined;
body?: string | undefined;
timestamp?: number;
})
- Cancel a pending notification.
actions.cancelNotification(notificationId)
- Open the player card for a specific playerId.
actions.navigate('PlayerPopupScreen', {
playerId: PlayerId,
sport: SportType
}
- Split out the
actions
object from context into a new prop:
type OwnProps = {
context: Types.Context;
events: Types.Events;
actions: Types.Actions;
entitlements: Types.Entitlements;
};
const TradeSample = (props: OwnProps) => {
const {actions, context, events, entitlements} = props;
...
};