title: Passing functions to ReactNative Library ActionButton
body: <p><strong>Background</strong></p>
  
  <p>I am using <a href="https://github.com/xotahal/react-native-material-ui/blob/master/src/ActionButton/ActionButton.react.js" rel="nofollow noreferrer">xotahal/react-native-material-ui</a> material design in my <code>React-Native</code> application. I have implemented the <code>ActionButton</code> with multiple buttons in it. I can not find anywhere in the docs that is explains how to use this. I was able to find the component in the git repo and managed getting the buttons to render but I can't get them to fire of <code>onClick()</code>. </p>
  
  <p><strong>Example</strong></p>
  
  <p>The buttons appear when the main blue button is clicked. </p>
  
  <p><a href="https://i.stack.imgur.com/WyNyC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WyNyC.png" alt="enter image description here"></a></p>
  
  <p><strong>Question</strong></p>
  
  <p>What is the proper way to pass functions to these buttons, or where in the documentation is this explained? </p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>&lt;ActionButton
      actions={[ 
          { icon: 'note-add', label: 'Add', onPress: () =&gt; this.toggleSearch() },
          { icon: 'save', label: 'Save', onPress: () =&gt; this.handleOnSave() },]}
  </code></pre>
  
  <p>/></p>
  
  <pre><code>toggleSearch() {
          console.log('################## HEY SEARCH WORKS ##########################');
  
      }
  </code></pre>
  
  <p>Problem with this is that no functions are fired when I click the button. </p>
  
  <p>I would be grateful if someone knows where this is explained in the documentation. </p>