Hubert Dworczyński

Results 16 comments of Hubert Dworczyński

I stumbled upon this post after an hour of scratching my head. Thanks for this solution @shift-keshav-pudaruth !

I haven't been able to achieve this effect using this library. I'm not sure it's possible with the current implementation in the java code. I was able to throw something...

This should do the trick (`next-i18next.d.ts`) ```typescript // import the original type declarations import "react-i18next"; // import all namespaces (for the default language, only) import type en from "@public/locales/en/common.json"; declare...

We currently accomplish this by storing the id of the previously focused element inside redux and setting `hasTVPreferredFocus={itemUniqueId === storedItemId}` on the component. This is obviously not ideal as it...

to expand a little, here's one way you could solve this: - inside your global store (e.g `redux` or `context`) you would keep a `shouldRefreshFocus` property as well as a...

API-wise, it would be great to have something like [react-spatial-navigation](https://github.com/NoriginMedia/react-spatial-navigation).

here's another interesting approach from [ink, the React renderer for CLIs](https://github.com/vadimdemedes/ink#usefocusoptions).

Since React Native 0.61, this package doesn't work anymore. Edit: I've submitted a PR that adds the extracted package: https://github.com/zbtang/React-Native-ViewPager/pull/179

A workaround is to carefully tweak breakpoints like in the responsive example, but it needs to be fixed.

> @TrebuhD thanks a lot for the tip. does your solution work both for Android and Apple TV? > > I only made it work on the Apple TV. 🤔...