RCTActivityIndicatorView.m 442 B

12345678910111213141516171819202122
  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 "RCTActivityIndicatorView.h"
  8. @implementation RCTActivityIndicatorView {
  9. }
  10. - (void)setHidden:(BOOL)hidden
  11. {
  12. if ([self hidesWhenStopped] && ![self isAnimating]) {
  13. [super setHidden:YES];
  14. } else {
  15. [super setHidden:hidden];
  16. }
  17. }
  18. @end