react-native-action-sheet-component
react-native-action-sheet-component copied to clipboard
ActionSheetManager is not showing items
I have a problem with ActionSheetManager when usage like this:
import React, { Component } from 'react';
import { Button } from 'react-native';
import ActionSheetManager, { ActionSheet, ActionSheetItem } from 'react-native-action-sheet-component';
export default class App extends Component {
render() {
const options = {
children: [
<ActionSheetItem
key='item-1'
text="Item 1"
value="item1"
/>,
<ActionSheetItem
key='item-2'
text="Item 2"
value="item2"
/>
],
};
return (
<Button onPress={() => ActionSheetManager.show(options)} title="Open" />
);
}
}
same problem
Any way to fix this issue?
@fang0rnz I changed it to another release and it worked
"react-native-action-sheet-component": "0.0.34"
same problem
After downgrade i got
Cannot read property 'removeEventListener' of undefined at ActionSheet.componentWillUnmount