Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7700858

Browse files
committed
Use a FIFO queue to prevent async operation clashes
1 parent f852996 commit 7700858

2 files changed

Lines changed: 162 additions & 153 deletions

File tree

‎ios/RNBootSplash.h‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
11
#import <React/RCTBridgeModule.h>
22
#import <React/RCTRootView.h>
33

4+
typedef enum {
5+
RNBootSplashTaskTypeShow = 0,
6+
RNBootSplashTaskTypeHide = 1
7+
} RNBootSplashTaskType;
8+
9+
typedef enum {
10+
RNBootSplashStatusVisible = 0,
11+
RNBootSplashStatusHidden = 1,
12+
RNBootSplashStatusTransitioning = 2,
13+
} RNBootSplashStatus;
14+
15+
@interface RNBootSplashTask : NSObject
16+
17+
@property (nonatomic, readonly) RNBootSplashTaskType type;
18+
@property (nonatomic, readonly) BOOL fade;
19+
@property (nonatomic, readonly, strong) RCTPromiseResolveBlock _Nonnull resolve;
20+
@property (nonatomic, readonly, strong) RCTPromiseRejectBlock _Nonnull reject;
21+
22+
- (instancetype _Nonnull)initWithType:(RNBootSplashTaskType)type
23+
fade:(BOOL)fade
24+
resolver:(RCTPromiseResolveBlock _Nonnull)resolve
25+
rejecter:(RCTPromiseRejectBlock _Nonnull)reject;
26+
27+
@end
28+
429
@interface RNBootSplash : NSObject <RCTBridgeModule>
530

631
+ (void)initWithStoryboard:(NSString * _Nonnull)storyboardName

0 commit comments

Comments
 (0)