react-native-macos/React/Views/RCTSegmentedControl.h

27 строки
825 B
C
Исходник Обычный вид История

/**
2019-03-28 23:44:57 +03:00
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
2019-03-01 21:09:07 +03:00
#import <React/RCTUIKit.h> // TODO(macOS ISS#2323203)
#import <React/RCTComponent.h>
2019-03-01 21:09:07 +03:00
#if !TARGET_OS_OSX // TODO(macOS ISS#2323203)
@interface RCTSegmentedControl : UISegmentedControl
2019-03-01 21:09:07 +03:00
#else // [TODO(macOS ISS#2323203)
@interface RCTSegmentedControl : NSSegmentedControl
#endif // ]TODO(macOS ISS#2323203)
#if TARGET_OS_OSX // [TODO(macOS ISS#2323203)
@property (nonatomic, assign, getter = isMomentary) BOOL momentary;
#endif // ]TODO(macOS ISS#2323203)
@property (nonatomic, copy) NSArray<NSString *> *values;
@property (nonatomic, assign) NSInteger selectedIndex;
@property (nonatomic, copy) RCTBubblingEventBlock onChange;
@end