As per the React Native documentation provided on https://facebook.github.io/react-native/docs/actionsheetios, we must pass a number to the anchor option. I honestly haven't read a more vague sentence in the whole docs and I am completely lost.
anchor (number) - the node to which the action sheet should be anchored (used for iPad)
I tried playing around with a bunch of numbers but the result is always the same. The ActionSheet opens to the top left of the screen.
From what I have been able to understand so far, the following should work:
ActionSheetIOS.showActionSheetWithOptions(
{
cancelButtonIndex: buttonsArray.length - 1,
options: buttonsArray,
anchor: 51, // THIS. WHAT THE HELL IS THIS NUMBER SUPPOSED TO BE?
},
(buttonIndex) => {
.
.
.
}
);