RCTSwitch.m 407 B

1234567891011121314151617181920
  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. _wasOn = on;
  13. [super setOn:on animated:animated];
  14. }
  15. @end