Check out example codes for "scss @mixin base". It will help you in understanding the concepts better.

Code Example 1

@mixin rtl($property, $ltr-value, $rtl-value) {
  #{$property}: $ltr-value;

  [dir=rtl] & {
    #{$property}: $rtl-value;
  }
}

.sidebar {
  @include rtl(float, left, right);
}

Learn ReactJs, React Native from akashmittal.com