flexn-io / create

Build apps for web, TVs, desktops, consoles, wearables and more. Developer friendly UI library targeting all form factors platforms. Another notable feature is providing focus management for TVs which very easy to implement using Create.
https://create.flexn.org
MIT License
26 stars 6 forks source link

how do you reference a flashlist ? #120

Closed saimirg closed 1 year ago

saimirg commented 1 year ago

Hi, how do you reference a flashlist ? We have navigation bar with tags/filters which effect a flashlist, and we want the flashlist to scroll to index 0 every time the tag/filter changes.

aurimasmi commented 1 year ago

Hi, does for data reloading? If it does it should go to the first item automatically

saimirg commented 1 year ago

Hi, here is a better explanation. We have two flashlists on the screen, linked to a master-detail relationship (serial and episodes).

When you navigate through serials, episodes are automatically filtered below. Then you go to episodes and navigate through them. If you go back to Serials and chose another Serial and then go to Episodes again (that have changed now), focus is lost until you navigate left or right.

aurimasmi commented 1 year ago

That sounds like a legitimate bug, I'll try to reproduce it and fix it over the weekend. Thanks for sharing

aurimasmi commented 1 year ago

@saimirg fixed. Please try version 1.0.0-alpha.1

saimirg commented 1 year ago

Sorry, dont want to jump to another issue, but how do i fix the "Cannot find module metro-cache" error ?

The setup part runs fine.

image

But when i go to project folder and run: rnv run , it generates this error:

image
aurimasmi commented 1 year ago

@saimirg I see you are using very old version, please use latest rnv 0.37.0-rc.10

saimirg commented 1 year ago

Hi @aurimasmi, is there maybe another library i need to upgrade ? I keep getting the same error.

image
aurimasmi commented 1 year ago

So apparently there is issue in renative. If you would run npx rnv -p platform_name that should work. Could you try that?

aurimasmi commented 1 year ago

Can be tested in harness-app. Test ID #DR1