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
anduseWindowInsets
hooks. -
Event marshalling was optimized for better performance. Class member cache was added in
KotlinTypeAdapter
. -
GetKeyboardStatusEvent
,KeyboardStatusChangedEvent
were deprecated, useGetKeyboardHeightEvent
andKeyboardAnimationStartedEvent
instead. -
Renamed
Download.lastModifiedTimestamp
toDownload.lastModifiedTime
. -
Added hooks that provide managers.
-
Fixed keyboard height pixel density.