RCTSwitch.m 406 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import "RCTSwitch.h"
  8. #import "RCTEventDispatcher.h"
  9. #import "UIView+React.h"
  10. @implementation RCTSwitch
  11. - (void)setOn:(BOOL)on animated:(BOOL)animated
  12. {
  13. _wasOn = on;
  14. [super setOn:on animated:animated];
  15. }
  16. @end