Skip to content

v1.6.2

Compare
Choose a tag to compare
@sleeper-luke sleeper-luke released this 10 Oct 16:43
· 15 commits to main since this release
902d72d

What's Changed

This release introduces a few additional API calls and features:

  1. Deep link to a mini from a URL.
sleeper://mini?miniId=companyname-yourminiid
  1. 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;
})
  1. Cancel a pending notification.
actions.cancelNotification(notificationId)
  1. Open the player card for a specific playerId.
actions.navigate('PlayerPopupScreen', {
  playerId: PlayerId,
  sport: SportType
}
  1. 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;

  ...
};