jacklam718 / react-native-action-sheet-component

React Native Action Sheet Component for iOS & Android.
MIT License
61 stars 17 forks source link

ActionSheetManager is not showing items #13

Open LucasMonteiro1 opened 6 years ago

LucasMonteiro1 commented 6 years ago

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" />
    );
  }
}
hasan642 commented 6 years ago

same problem

fang0rnz commented 6 years ago

Any way to fix this issue?

LucasMonteiro1 commented 6 years ago

@fang0rnz I changed it to another release and it worked

"react-native-action-sheet-component": "0.0.34" 
aprocom commented 6 years ago

same problem

anastely commented 4 years ago

After downgrade i got

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