mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-24 04:25:34 +08:00
Navigation stack native primitives (#139)
Adds support for stack navigation primitives (UINavigationViewController and Android fragment container with back button support)
This commit is contained in:
committed by
GitHub
parent
4c2aded426
commit
80a466970e
47
ios/RNSScreenStackHeaderConfig.h
Normal file
47
ios/RNSScreenStackHeaderConfig.h
Normal file
@@ -0,0 +1,47 @@
|
||||
#import <React/RCTViewManager.h>
|
||||
#import <React/RCTConvert.h>
|
||||
|
||||
@interface RNSScreenStackHeaderConfig : UIView
|
||||
|
||||
@property (nonatomic, retain) NSString *title;
|
||||
@property (nonatomic, retain) NSString *titleFontFamily;
|
||||
@property (nonatomic, retain) NSNumber *titleFontSize;
|
||||
@property (nonatomic, retain) UIColor *titleColor;
|
||||
@property (nonatomic, retain) NSString *backTitle;
|
||||
@property (nonatomic, retain) NSString *backTitleFontFamily;
|
||||
@property (nonatomic, retain) NSNumber *backTitleFontSize;
|
||||
@property (nonatomic, retain) UIColor *backgroundColor;
|
||||
@property (nonatomic, retain) UIColor *color;
|
||||
@property (nonatomic) BOOL hide;
|
||||
@property (nonatomic) BOOL largeTitle;
|
||||
@property (nonatomic) BOOL hideBackButton;
|
||||
@property (nonatomic) BOOL hideShadow;
|
||||
@property (nonatomic) BOOL translucent;
|
||||
@property (nonatomic) BOOL gestureEnabled;
|
||||
|
||||
- (void)willShowViewController:(UIViewController *)vc;
|
||||
|
||||
@end
|
||||
|
||||
@interface RNSScreenStackHeaderConfigManager : RCTViewManager
|
||||
|
||||
@end
|
||||
|
||||
typedef NS_ENUM(NSInteger, RNSScreenStackHeaderSubviewType) {
|
||||
RNSScreenStackHeaderSubviewTypeLeft,
|
||||
RNSScreenStackHeaderSubviewTypeRight,
|
||||
RNSScreenStackHeaderSubviewTypeTitle,
|
||||
RNSScreenStackHeaderSubviewTypeCenter,
|
||||
};
|
||||
|
||||
@interface RCTConvert (RNSScreenStackHeader)
|
||||
|
||||
+ (RNSScreenStackHeaderSubviewType)RNSScreenStackHeaderSubviewType:(id)json;
|
||||
|
||||
@end
|
||||
|
||||
@interface RNSScreenStackHeaderSubviewManager : RCTViewManager
|
||||
|
||||
@property (nonatomic) RNSScreenStackHeaderSubviewType type;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user