Check out example codes for "ionic deactivate fab button". It will help you in understanding the concepts better.

Code Example 1

<ion-fab>
  <button ion-fab [disabled]="!isValidInput()" (click)="add()">
    <ion-icon name="checkmark"></ion-icon>
  </button>
</ion-fab>

Learn ReactJs, React Native from akashmittal.com