Skip to content

Commit 366c15d

Browse files
fromcelticparkfacebook-github-bot
authored andcommitted
Use RCTDevLoadingView in a sample app
Reviewed By: javache Differential Revision: D4985384 fbshipit-source-id: 1d5a33a6746010d3cf4ac524468af21bb9599f3e
1 parent 1adb318 commit 366c15d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

React/DevSupport/RCTDevLoadingView.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
@interface RCTDevLoadingView : NSObject <RCTBridgeModule>
1515

1616
+ (void)setEnabled:(BOOL)enabled;
17+
- (void)showWithURL:(NSURL *)URL;
1718
- (void)updateProgress:(RCTLoadingProgress *)progress;
19+
- (void)hide;
1820

1921
@end

React/DevSupport/RCTDevLoadingView.m

+3-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ @implementation RCTDevLoadingView
161161

162162
+ (NSString *)moduleName { return nil; }
163163
+ (void)setEnabled:(BOOL)enabled { }
164-
- (void)updateProgress:(RCTLoadingProgress *)progress {}
164+
- (void)showWithURL:(NSURL *)URL { }
165+
- (void)updateProgress:(RCTLoadingProgress *)progress { }
166+
- (void)hide { }
165167

166168
@end
167169

0 commit comments

Comments
 (0)