diff --git a/React/Base/RCTJSScriptLoaderModule.h b/React/Base/RCTJSScriptLoaderModule.h index c05c29f7697bb3..f05d361a579411 100644 --- a/React/Base/RCTJSScriptLoaderModule.h +++ b/React/Base/RCTJSScriptLoaderModule.h @@ -7,12 +7,16 @@ @class RCTSource; +NS_ASSUME_NONNULL_BEGIN + /** * This protocol should be adopted when a turbo module needs to tell React Native to load a script. * In bridge-less React Native, it is a replacement for [_bridge loadAndExecuteSplitBundleURL:]. */ @protocol RCTJSScriptLoaderModule -@property (nonatomic, copy, nonnull) void (^loadScript)(RCTSource *source); +@property (nonatomic, copy) void (^loadScript)(RCTSource *source); @end + +NS_ASSUME_NONNULL_END diff --git a/React/CoreModules/RCTTiming.h b/React/CoreModules/RCTTiming.h index 1039f254ceae1f..8d5780e174e2f9 100644 --- a/React/CoreModules/RCTTiming.h +++ b/React/CoreModules/RCTTiming.h @@ -12,21 +12,25 @@ #import #import +NS_ASSUME_NONNULL_BEGIN + @protocol RCTTimingDelegate - (void)callTimers:(NSArray *)timers; -- (void)immediatelyCallTimer:(nonnull NSNumber *)callbackID; -- (void)callIdleCallbacks:(nonnull NSNumber *)absoluteFrameStartMS; +- (void)immediatelyCallTimer:(NSNumber *)callbackID; +- (void)callIdleCallbacks:(NSNumber *)absoluteFrameStartMS; @end @interface RCTTiming : NSObject - (instancetype)initWithDelegate:(id)delegate; -- (void)createTimerForNextFrame:(nonnull NSNumber *)callbackID +- (void)createTimerForNextFrame:(NSNumber *)callbackID duration:(NSTimeInterval)jsDuration jsSchedulingTime:(NSDate *)jsSchedulingTime repeats:(BOOL)repeats; - (void)deleteTimer:(double)timerID; @end + +NS_ASSUME_NONNULL_END