Skip to content

v1.8.0

Latest
Compare
Choose a tag to compare
@smikhalevski smikhalevski released this 10 Oct 14:47
· 1 commit to master since this release

Changelog: android-racehorse-v1.7.1...android-racehorse-v1.8.0

  • Software keyboard animation is seamlessly propagated to the web app if KeyboardPlugin is enabled:
import { useKeyboardAnimation, runAnimation } from '@racehorse/react';

useKeyboardAnimation((animation, signal) => {
  // Run the animation in sync with the native keyboard animation.
  runAnimation(
    animation,
    {
      onProgress(animation, fraction, percent) {
        const keyboardHeight = animation.startValue + (animation.endValue - animation.startValue) * fraction;

        document.body.style.paddingBottom = keyboardHeight + 'px';
      }
    },
    signal
  );
});
  • Added useKeyboardHeight and useWindowInsets hooks.

  • Event marshalling was optimized for better performance. Class member cache was added in KotlinTypeAdapter.

  • GetKeyboardStatusEvent, KeyboardStatusChangedEvent were deprecated, use GetKeyboardHeightEvent and KeyboardAnimationStartedEvent instead.

  • Renamed Download.lastModifiedTimestamp to Download.lastModifiedTime.

  • Added hooks that provide managers.

  • Fixed keyboard height pixel density.