NoodleOfDeath
NoodleOfDeath
having this issue myself. but i call setup player in my playback service. i will try moving it outside
it seems the only way i could get this to work for android without making it crash was to call TrackPlayer.setupPlayer() twice. super weird
@kesha-antonov it's a key reactivity issue. they use the index as the key, so react doesnt know that the menu item needs to be recomputed. Rule of thumb, never use...
Would also be nice if the `text` prop could be a function that returns a string
This is the test code I was using. All of my items have identical menu items except for `onPress`. If you remove the ability to supply your own unique key,...
OHHH I LIKE THIS!! I was trying to add some kind of 'willOpen' property but it needs be synchronously awaited before calculating the size of the component
~Can I recommend instead of using a `nanoid` a timebased uuid like `uuid.v1` be used? this solved my issue when i replaced nanoidi with `new Date().toString()`~ Correction -- even using...
Can we add a `key` or `id` property t `MenuItemProps`? I think the react hooks are not recomputing the items because they don't have anything that differs other than the...
A HAH! I found the culprit. Line 14 of `MenuItems.tsx`! Never ever use an index as a key! Adding a `key` property to `MenuItemProps` and passing that as the `key`...
By all means!