React and React Native Package Updates

React (2.3.4) and React Native (2.3.4) packages updated to:

  • Export EventPayload.
  • Export EmptyPayloadObject as Record<string, never>.
  • Use EmptyPayloadObject instead of {} in EventPayload type to behave as expected.
  • Export PinwheelError.
    • Mark Error as deprecated.
  • Export PinwheelErrorType.
    • Mark ErrorType as deprecated.
  • Update onExit type to be (error: PinwheelError | EmptyPayloadObject) to conform with current functionality.