react-native-action-sheet-component icon indicating copy to clipboard operation
react-native-action-sheet-component copied to clipboard

ActionSheetManager is not showing items

Open LucasMonteiro1 opened this issue 7 years ago • 5 comments

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" />
    );
  }
}

LucasMonteiro1 avatar Apr 03 '18 19:04 LucasMonteiro1

same problem

hasan642 avatar Apr 19 '18 09:04 hasan642

Any way to fix this issue?

fang0rnz avatar Jun 14 '18 23:06 fang0rnz

@fang0rnz I changed it to another release and it worked

"react-native-action-sheet-component": "0.0.34" 

LucasMonteiro1 avatar Jun 15 '18 10:06 LucasMonteiro1

same problem

aprocom avatar Aug 06 '18 14:08 aprocom

After downgrade i got

Cannot read property 'removeEventListener' of undefined at ActionSheet.componentWillUnmount

anastely avatar Jan 24 '20 18:01 anastely