Oskar Nellfors
Oskar Nellfors
You can use it like this ``` showActionSheetWithOptions( { /* ... your things ... */ anchor: findNodeHandle(buttonRef.current), }, async (buttonIndex: number) => { /* ... do stuff ... */ },...
Weirdly, it's like that index is not 0-indexed. I got my cancel-button back if I changed the index. In your first example that would be index 3. It makes 0...
``` cancelButtonIndex: (Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 18) ? options.length : options.length - 1, ``` This is how I solved it I still get `options.length - 1` out...