Added native event emitter
Summary: This is a solution for the problem I raised in https://www.facebook.com/groups/react.native.community/permalink/768218933313687/ I've added a new native base class, `RCTEventEmitter` as well as an equivalent JS class/module `NativeEventEmitter` (RCTEventEmitter.js and EventEmitter.js were taken already). Instead of arbitrary modules sending events via `bridge.eventDispatcher`, the idea is that any module that sends events should now subclass `RCTEventEmitter`, and provide an equivalent JS module that subclasses `NativeEventEmitter`. JS code that wants to observe the events should now observe it via the specific JS module rather than via `RCTDeviceEventEmitter` directly. e.g. to observer a keyboard event, instead of writing: const RCTDeviceEventEmitter = require('RCTDeviceEventEmitter'); RCTDeviceEventEmitter.addListener('keyboardWillShow', (event) => { ... }); You'd now write: const Keyboard = require('Keyboard'); Keyboard.addListener('keyboardWillShow', (event) => { ... }); Within a component, you can also use the `Subscribable.Mixin` as you would previously, but instead of: this.addListenerOn(RCTDeviceEventEmitter, 'keyboardWillShow', ...); Write: this.addListenerOn(Keyboard, 'keyboardWillShow', ...); This approach allows the native `RCTKeyboardObserver` module to be created lazily the first time a listener is added, and to stop sending events when the last listener is removed. It also allows us to validate that the event strings being observed and omitted match the supported events for that module. As a proof-of-concept, I've converted the `RCTStatusBarManager` and `RCTKeyboardObserver` modules to use the new system. I'll convert the rest in a follow up diff. For now, the new `NativeEventEmitter` JS module wraps the `RCTDeviceEventEmitter` JS module, and just uses the native `RCTEventEmitter` module for bookkeeping. This allows for full backwards compatibility (code that is observing the event via `RCTDeviceEventEmitter` instead of the specific module will still work as expected, albeit with a warning). Once all legacy calls have been removed, this could be refactored to something more elegant internally, whilst maintaining the same public interface. Note: currently, all device events still share a single global namespace, since they're really all registered on the same emitter instance internally. We should move away from that as soon as possible because it's not intuitive and will likely lead to strange bugs if people add generic events such as "onChange" or "onError" to their modules (which is common practice for components, where it's not a problem). Reviewed By: javache Differential Revision: D3269966 fbshipit-source-id: 1412daba850cd373020e1086673ba38ef9193050
This commit is contained in:
parent
2d43663ac8
commit
9ee1f37bad
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @providesModule Keyboard
|
||||
* @flow
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
const NativeEventEmitter = require('NativeEventEmitter');
|
||||
|
||||
module.exports = new NativeEventEmitter('KeyboardObserver');
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
var Dimensions = require('Dimensions');
|
||||
var Platform = require('Platform');
|
||||
var RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
|
||||
var Keyboard = require('Keyboard');
|
||||
var ReactNative = require('ReactNative');
|
||||
var Subscribable = require('Subscribable');
|
||||
var TextInputState = require('TextInputState');
|
||||
|
@ -476,10 +476,10 @@ var ScrollResponderMixin = {
|
|||
componentWillMount: function() {
|
||||
this.keyboardWillOpenTo = null;
|
||||
this.additionalScrollOffset = 0;
|
||||
this.addListenerOn(RCTDeviceEventEmitter, 'keyboardWillShow', this.scrollResponderKeyboardWillShow);
|
||||
this.addListenerOn(RCTDeviceEventEmitter, 'keyboardWillHide', this.scrollResponderKeyboardWillHide);
|
||||
this.addListenerOn(RCTDeviceEventEmitter, 'keyboardDidShow', this.scrollResponderKeyboardDidShow);
|
||||
this.addListenerOn(RCTDeviceEventEmitter, 'keyboardDidHide', this.scrollResponderKeyboardDidHide);
|
||||
this.addListenerOn(Keyboard, 'keyboardWillShow', this.scrollResponderKeyboardWillShow);
|
||||
this.addListenerOn(Keyboard, 'keyboardWillHide', this.scrollResponderKeyboardWillHide);
|
||||
this.addListenerOn(Keyboard, 'keyboardDidShow', this.scrollResponderKeyboardDidShow);
|
||||
this.addListenerOn(Keyboard, 'keyboardDidHide', this.scrollResponderKeyboardDidHide);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,4 +11,6 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
module.exports = null;
|
||||
const NativeEventEmitter = require('NativeEventEmitter');
|
||||
|
||||
module.exports = new NativeEventEmitter('StatusBarManager');
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
const NativeEventEmitter = require('NativeEventEmitter');
|
||||
const StatusBar = require('StatusBar');
|
||||
|
||||
import type {StatusBarStyle, StatusBarAnimation} from 'StatusBar';
|
||||
|
@ -18,17 +19,17 @@ import type {StatusBarStyle, StatusBarAnimation} from 'StatusBar';
|
|||
/**
|
||||
* Deprecated. Use `StatusBar` instead.
|
||||
*/
|
||||
const StatusBarIOS = {
|
||||
class StatusBarIOS extends NativeEventEmitter {
|
||||
|
||||
setStyle(style: StatusBarStyle, animated?: boolean) {
|
||||
console.warn('`StatusBarIOS.setStyle` is deprecated. Use `StatusBar.setBarStyle` instead.');
|
||||
StatusBar.setBarStyle(style, animated);
|
||||
},
|
||||
}
|
||||
|
||||
setHidden(hidden: boolean, animation?: StatusBarAnimation) {
|
||||
console.warn('`StatusBarIOS.setHidden` is deprecated. Use `StatusBar.setHidden` instead.');
|
||||
StatusBar.setHidden(hidden, animation);
|
||||
},
|
||||
}
|
||||
|
||||
setNetworkActivityIndicatorVisible(visible: boolean) {
|
||||
console.warn(
|
||||
|
@ -36,7 +37,7 @@ const StatusBarIOS = {
|
|||
'Use `StatusBar.setNetworkActivityIndicatorVisible` instead.'
|
||||
);
|
||||
StatusBar.setNetworkActivityIndicatorVisible(visible);
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = StatusBarIOS;
|
||||
module.exports = new StatusBarIOS('StatusBarManager');
|
||||
|
|
|
@ -0,0 +1,72 @@
|
|||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @providesModule NativeEventEmitter
|
||||
* @flow
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
const NativeModules = require('NativeModules');
|
||||
const Platform = require('Platform');
|
||||
const RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
|
||||
const invariant = require('fbjs/lib/invariant');
|
||||
|
||||
import type EmitterSubscription from 'EmitterSubscription';
|
||||
|
||||
/**
|
||||
* Abstract base class for implementing event-emitting modules. This implements
|
||||
* a subset of the standard EventEmitter node module API.
|
||||
*/
|
||||
class NativeEventEmitter {
|
||||
|
||||
_listenerCount: number;
|
||||
_nativeModule: Object;
|
||||
|
||||
constructor(nativeModuleName: string) {
|
||||
if (Platform.OS === 'ios') {
|
||||
this._listenerCount = 0;
|
||||
this._nativeModule = NativeModules[nativeModuleName];
|
||||
invariant(this._nativeModule,
|
||||
'Native module `' + nativeModuleName + '` not found.');
|
||||
}
|
||||
}
|
||||
|
||||
addListener(eventType: string, listener: any, context: ?Object): EmitterSubscription {
|
||||
if (Platform.OS === 'ios') {
|
||||
this._listenerCount++;
|
||||
this._nativeModule.addListener(eventType);
|
||||
}
|
||||
return RCTDeviceEventEmitter.nativeAddListener(eventType, listener, context);
|
||||
}
|
||||
|
||||
once(eventType: string, listener: any, context: ?Object): EmitterSubscription {
|
||||
return this.addListener(eventType, () => {
|
||||
this.removeCurrentListener();
|
||||
listener.apply(context, arguments);
|
||||
});
|
||||
}
|
||||
|
||||
removeAllListeners(eventType: string) {
|
||||
invariant(eventType, 'eventType argument is required.');
|
||||
if (Platform.OS === 'ios') {
|
||||
var count = RCTDeviceEventEmitter.listeners(eventType).length;
|
||||
this._nativeModule.removeListeners(count);
|
||||
}
|
||||
RCTDeviceEventEmitter.removeAllListeners(eventType);
|
||||
}
|
||||
|
||||
removeCurrentListener() {
|
||||
if (Platform.OS === 'ios') {
|
||||
this._listenerCount--;
|
||||
this._nativeModule.removeListeners(1);
|
||||
}
|
||||
RCTDeviceEventEmitter.removeCurrentListener();
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NativeEventEmitter;
|
|
@ -11,10 +11,36 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
var EventEmitter = require('EventEmitter');
|
||||
var BatchedBridge = require('BatchedBridge');
|
||||
const EventEmitter = require('EventEmitter');
|
||||
const BatchedBridge = require('BatchedBridge');
|
||||
const NativeModules = require('NativeModules');
|
||||
|
||||
var RCTDeviceEventEmitter = new EventEmitter();
|
||||
import type EmitterSubscription from 'EmitterSubscription';
|
||||
|
||||
/**
|
||||
* Deprecated - subclass NativeEventEmitter to create granular event modules instead of
|
||||
* routing all event observation through RCTDeviceEventEmitter.
|
||||
*/
|
||||
class RCTDeviceEventEmitter extends EventEmitter {
|
||||
|
||||
addListener(eventType: string, listener: any, context: ?Object): EmitterSubscription {
|
||||
if (eventType.lastIndexOf('statusBar', 0) === 0) {
|
||||
console.warn('statusBar events should be registered via the StatusBarIOS module');
|
||||
return require('StatusBarIOS').addListener(eventType, listener, context);
|
||||
}
|
||||
if (eventType.lastIndexOf('keyboard', 0) === 0) {
|
||||
console.warn('keyboard events should be registered via the Keyboard module');
|
||||
return require('Keyboard').addListener(eventType, listener, context);
|
||||
}
|
||||
return super.addListener(eventType, listener, context);
|
||||
}
|
||||
|
||||
nativeAddListener(eventType: string, listener: any, context: ?Object): EmitterSubscription {
|
||||
return super.addListener(eventType, listener, context);
|
||||
}
|
||||
}
|
||||
|
||||
RCTDeviceEventEmitter = new RCTDeviceEventEmitter();
|
||||
|
||||
BatchedBridge.registerCallableModule(
|
||||
'RCTDeviceEventEmitter',
|
||||
|
|
|
@ -257,7 +257,8 @@ RCT_EXTERN NSArray<Class> *RCTGetModuleClasses(void);
|
|||
{
|
||||
if (class_conformsToProtocol(superclass, @protocol(RCTBridgeModule)))
|
||||
{
|
||||
if (![moduleClasses containsObject:cls]) {
|
||||
if (![moduleClasses containsObject:cls] &&
|
||||
![cls respondsToSelector:@selector(moduleName)]) {
|
||||
RCTLogWarn(@"Class %@ was not exported. Did you forget to use "
|
||||
"RCT_EXPORT_MODULE()?", cls);
|
||||
}
|
||||
|
|
|
@ -220,25 +220,29 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init);
|
|||
}
|
||||
|
||||
unsigned int methodCount;
|
||||
Method *methods = class_copyMethodList(object_getClass(_moduleClass), &methodCount);
|
||||
Class cls = _moduleClass;
|
||||
while (cls && cls != [NSObject class] && cls != [NSProxy class]) {
|
||||
Method *methods = class_copyMethodList(object_getClass(cls), &methodCount);
|
||||
|
||||
for (unsigned int i = 0; i < methodCount; i++) {
|
||||
Method method = methods[i];
|
||||
SEL selector = method_getName(method);
|
||||
if ([NSStringFromSelector(selector) hasPrefix:@"__rct_export__"]) {
|
||||
IMP imp = method_getImplementation(method);
|
||||
NSArray<NSString *> *entries =
|
||||
((NSArray<NSString *> *(*)(id, SEL))imp)(_moduleClass, selector);
|
||||
id<RCTBridgeMethod> moduleMethod =
|
||||
[[RCTModuleMethod alloc] initWithMethodSignature:entries[1]
|
||||
JSMethodName:entries[0]
|
||||
moduleClass:_moduleClass];
|
||||
for (unsigned int i = 0; i < methodCount; i++) {
|
||||
Method method = methods[i];
|
||||
SEL selector = method_getName(method);
|
||||
if ([NSStringFromSelector(selector) hasPrefix:@"__rct_export__"]) {
|
||||
IMP imp = method_getImplementation(method);
|
||||
NSArray<NSString *> *entries =
|
||||
((NSArray<NSString *> *(*)(id, SEL))imp)(_moduleClass, selector);
|
||||
id<RCTBridgeMethod> moduleMethod =
|
||||
[[RCTModuleMethod alloc] initWithMethodSignature:entries[1]
|
||||
JSMethodName:entries[0]
|
||||
moduleClass:_moduleClass];
|
||||
|
||||
[moduleMethods addObject:moduleMethod];
|
||||
[moduleMethods addObject:moduleMethod];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
free(methods);
|
||||
free(methods);
|
||||
cls = class_getSuperclass(cls);
|
||||
}
|
||||
|
||||
_methods = [moduleMethods copy];
|
||||
}
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
#import "RCTBridge.h"
|
||||
|
||||
/**
|
||||
* RCTEventEmitter is an abstract base class to be used for modules that emit
|
||||
* events to be observed by JS.
|
||||
*/
|
||||
@interface RCTEventEmitter : NSObject <RCTBridgeModule>
|
||||
|
||||
@property (nonatomic, weak) RCTBridge *bridge;
|
||||
|
||||
/**
|
||||
* Override this method to return an array of supported event names. Attempting
|
||||
* to observe or send an event that isn't included in this list will result in
|
||||
* an error.
|
||||
*/
|
||||
- (NSArray<NSString *> *)supportedEvents;
|
||||
|
||||
/**
|
||||
* Send an event that does not relate to a specific view, e.g. a navigation
|
||||
* or data update notification.
|
||||
*/
|
||||
- (void)sendEventWithName:(NSString *)name body:(id)body;
|
||||
|
||||
/**
|
||||
* These methods will be called when the first observer is added and when the
|
||||
* last observer is removed (or when dealloc is called), respectively. These
|
||||
* should be overridden in your subclass in order to start/stop sending events.
|
||||
*/
|
||||
- (void)startObserving;
|
||||
- (void)stopObserving;
|
||||
|
||||
@end
|
|
@ -0,0 +1,77 @@
|
|||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
#import "RCTEventEmitter.h"
|
||||
#import "RCTAssert.h"
|
||||
#import "RCTLog.h"
|
||||
|
||||
@implementation RCTEventEmitter
|
||||
{
|
||||
NSInteger _listenerCount;
|
||||
}
|
||||
|
||||
+ (NSString *)moduleName
|
||||
{
|
||||
return @"";
|
||||
}
|
||||
|
||||
- (NSArray<NSString *> *)supportedEvents
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void)sendEventWithName:(NSString *)eventName body:(id)body
|
||||
{
|
||||
RCTAssert(self.bridge != nil, @"bridge is not set.");
|
||||
|
||||
if (RCT_DEBUG && ![[self supportedEvents] containsObject:eventName]) {
|
||||
RCTLogError(@"`%@` is not a supported event type for %@", eventName, [self class]);
|
||||
}
|
||||
[self.bridge enqueueJSCall:@"RCTDeviceEventEmitter.emit"
|
||||
args:body ? @[eventName, body] : @[eventName]];
|
||||
}
|
||||
|
||||
- (void)startObserving
|
||||
{
|
||||
// Does nothing
|
||||
}
|
||||
|
||||
- (void)stopObserving
|
||||
{
|
||||
// Does nothing
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
if (_listenerCount > 0) {
|
||||
[self stopObserving];
|
||||
}
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(addListener:(NSString *)eventName)
|
||||
{
|
||||
if (RCT_DEBUG && ![[self supportedEvents] containsObject:eventName]) {
|
||||
RCTLogError(@"`%@` is not a supported event type for %@", eventName, [self class]);
|
||||
}
|
||||
if (_listenerCount == 0) {
|
||||
[self startObserving];
|
||||
}
|
||||
_listenerCount++;
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(removeListeners:(NSInteger)count)
|
||||
{
|
||||
RCTAssert(count <= _listenerCount, @"Attempted to remove more listeners than added");
|
||||
if (count == _listenerCount) {
|
||||
[self stopObserving];
|
||||
}
|
||||
_listenerCount -= count;
|
||||
}
|
||||
|
||||
@end
|
|
@ -7,10 +7,8 @@
|
|||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "RCTEventEmitter.h"
|
||||
|
||||
#import "RCTBridgeModule.h"
|
||||
|
||||
@interface RCTKeyboardObserver : NSObject <RCTBridgeModule>
|
||||
@interface RCTKeyboardObserver : RCTEventEmitter
|
||||
|
||||
@end
|
|
@ -15,21 +15,10 @@ static NSDictionary *RCTParseKeyboardNotification(NSNotification *notification);
|
|||
|
||||
@implementation RCTKeyboardObserver
|
||||
|
||||
@synthesize bridge = _bridge;
|
||||
|
||||
RCT_EXPORT_MODULE()
|
||||
|
||||
- (instancetype)init
|
||||
- (void)startObserving
|
||||
{
|
||||
// We're only overriding this to ensure the module gets created at startup
|
||||
// TODO (t11106126): Remove once we have more declarative control over module setup.
|
||||
return [super init];
|
||||
}
|
||||
|
||||
- (void)setBridge:(RCTBridge *)bridge
|
||||
{
|
||||
_bridge = bridge;
|
||||
|
||||
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
|
||||
|
||||
#define ADD_KEYBOARD_HANDLER(NAME, SELECTOR) \
|
||||
|
@ -46,7 +35,17 @@ RCT_EXPORT_MODULE()
|
|||
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
- (NSArray<NSString *> *)supportedEvents
|
||||
{
|
||||
return @[@"keyboardWillShow",
|
||||
@"keyboardDidShow",
|
||||
@"keyboardWillHide",
|
||||
@"keyboardDidHide",
|
||||
@"keyboardWillChangeFrame",
|
||||
@"keyboardDidChangeFrame"];
|
||||
}
|
||||
|
||||
- (void)stopObserving
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
}
|
||||
|
@ -54,8 +53,7 @@ RCT_EXPORT_MODULE()
|
|||
#define IMPLEMENT_KEYBOARD_HANDLER(EVENT) \
|
||||
- (void)EVENT:(NSNotification *)notification \
|
||||
{ \
|
||||
[_bridge.eventDispatcher \
|
||||
sendDeviceEventWithName:@#EVENT \
|
||||
[self sendEventWithName:@#EVENT \
|
||||
body:RCTParseKeyboardNotification(notification)]; \
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import "RCTBridgeModule.h"
|
||||
#import "RCTEventEmitter.h"
|
||||
#import "RCTConvert.h"
|
||||
|
||||
@interface RCTConvert (UIStatusBar)
|
||||
|
@ -19,6 +19,6 @@
|
|||
|
||||
@end
|
||||
|
||||
@interface RCTStatusBarManager : NSObject <RCTBridgeModule>
|
||||
@interface RCTStatusBarManager : RCTEventEmitter
|
||||
|
||||
@end
|
||||
|
|
|
@ -44,28 +44,20 @@ static BOOL RCTViewControllerBasedStatusBarAppearance()
|
|||
|
||||
RCT_EXPORT_MODULE()
|
||||
|
||||
@synthesize bridge = _bridge;
|
||||
|
||||
- (instancetype)init
|
||||
- (NSArray<NSString *> *)supportedEvents
|
||||
{
|
||||
// We're only overriding this to ensure the module gets created at startup
|
||||
// TODO (t11106126): Remove once we have more declarative control over module setup.
|
||||
return [super init];
|
||||
return @[@"statusBarFrameDidChange",
|
||||
@"statusBarFrameWillChange"];
|
||||
}
|
||||
|
||||
- (void)setBridge:(RCTBridge *)bridge
|
||||
- (void)startObserving
|
||||
{
|
||||
_bridge = bridge;
|
||||
|
||||
// TODO: if we add an explicit "startObserving" method, we can take this out
|
||||
// of the application startup path
|
||||
|
||||
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
|
||||
[nc addObserver:self selector:@selector(applicationDidChangeStatusBarFrame:) name:UIApplicationDidChangeStatusBarFrameNotification object:nil];
|
||||
[nc addObserver:self selector:@selector(applicationWillChangeStatusBarFrame:) name:UIApplicationWillChangeStatusBarFrameNotification object:nil];
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
- (void)stopObserving
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
}
|
||||
|
@ -86,7 +78,7 @@ RCT_EXPORT_MODULE()
|
|||
@"height": @(frame.size.height),
|
||||
},
|
||||
};
|
||||
[_bridge.eventDispatcher sendDeviceEventWithName:eventName body:event];
|
||||
[self sendEventWithName:eventName body:event];
|
||||
}
|
||||
|
||||
- (void)applicationDidChangeStatusBarFrame:(NSNotification *)notification
|
||||
|
|
|
@ -46,6 +46,8 @@
|
|||
13C156061AB1A2840079392D /* RCTWebViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13C156041AB1A2840079392D /* RCTWebViewManager.m */; };
|
||||
13CC8A821B17642100940AE7 /* RCTBorderDrawing.m in Sources */ = {isa = PBXBuildFile; fileRef = 13CC8A811B17642100940AE7 /* RCTBorderDrawing.m */; };
|
||||
13D033631C1837FE0021DC29 /* RCTClipboard.m in Sources */ = {isa = PBXBuildFile; fileRef = 13D033621C1837FE0021DC29 /* RCTClipboard.m */; };
|
||||
13D9FEEB1CDCCECF00158BD7 /* RCTEventEmitter.m in Sources */ = {isa = PBXBuildFile; fileRef = 13D9FEEA1CDCCECF00158BD7 /* RCTEventEmitter.m */; };
|
||||
13D9FEEE1CDCD93000158BD7 /* RCTKeyboardObserver.m in Sources */ = {isa = PBXBuildFile; fileRef = 13D9FEED1CDCD93000158BD7 /* RCTKeyboardObserver.m */; };
|
||||
13E0674A1A70F434002CDEE1 /* RCTUIManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E067491A70F434002CDEE1 /* RCTUIManager.m */; };
|
||||
13E067551A70F44B002CDEE1 /* RCTShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E0674C1A70F44B002CDEE1 /* RCTShadowView.m */; };
|
||||
13E067561A70F44B002CDEE1 /* RCTViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E0674E1A70F44B002CDEE1 /* RCTViewManager.m */; };
|
||||
|
@ -82,7 +84,6 @@
|
|||
830A229E1A66C68A008503DA /* RCTRootView.m in Sources */ = {isa = PBXBuildFile; fileRef = 830A229D1A66C68A008503DA /* RCTRootView.m */; };
|
||||
832348161A77A5AA00B55238 /* Layout.c in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FC71A68125100A75B9A /* Layout.c */; };
|
||||
83392EB31B6634E10013B15F /* RCTModalHostViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 83392EB21B6634E10013B15F /* RCTModalHostViewController.m */; };
|
||||
8385CF351B8B77CD00C6273E /* RCTKeyboardObserver.m in Sources */ = {isa = PBXBuildFile; fileRef = 8385CF341B8B77CD00C6273E /* RCTKeyboardObserver.m */; };
|
||||
83A1FE8C1B62640A00BE0E65 /* RCTModalHostView.m in Sources */ = {isa = PBXBuildFile; fileRef = 83A1FE8B1B62640A00BE0E65 /* RCTModalHostView.m */; };
|
||||
83A1FE8F1B62643A00BE0E65 /* RCTModalHostViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 83A1FE8E1B62643A00BE0E65 /* RCTModalHostViewManager.m */; };
|
||||
83CBBA511A601E3B00E9B192 /* RCTAssert.m in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBA4B1A601E3B00E9B192 /* RCTAssert.m */; };
|
||||
|
@ -201,6 +202,10 @@
|
|||
13CC8A811B17642100940AE7 /* RCTBorderDrawing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTBorderDrawing.m; sourceTree = "<group>"; };
|
||||
13D033611C1837FE0021DC29 /* RCTClipboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTClipboard.h; sourceTree = "<group>"; };
|
||||
13D033621C1837FE0021DC29 /* RCTClipboard.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTClipboard.m; sourceTree = "<group>"; };
|
||||
13D9FEE91CDCCECF00158BD7 /* RCTEventEmitter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTEventEmitter.h; sourceTree = "<group>"; };
|
||||
13D9FEEA1CDCCECF00158BD7 /* RCTEventEmitter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTEventEmitter.m; sourceTree = "<group>"; };
|
||||
13D9FEEC1CDCD93000158BD7 /* RCTKeyboardObserver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTKeyboardObserver.h; sourceTree = "<group>"; };
|
||||
13D9FEED1CDCD93000158BD7 /* RCTKeyboardObserver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTKeyboardObserver.m; sourceTree = "<group>"; };
|
||||
13E067481A70F434002CDEE1 /* RCTUIManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTUIManager.h; sourceTree = "<group>"; };
|
||||
13E067491A70F434002CDEE1 /* RCTUIManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTUIManager.m; sourceTree = "<group>"; };
|
||||
13E0674B1A70F44B002CDEE1 /* RCTShadowView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTShadowView.h; sourceTree = "<group>"; };
|
||||
|
@ -273,8 +278,6 @@
|
|||
830A229D1A66C68A008503DA /* RCTRootView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTRootView.m; sourceTree = "<group>"; };
|
||||
83392EB11B6634E10013B15F /* RCTModalHostViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTModalHostViewController.h; sourceTree = "<group>"; };
|
||||
83392EB21B6634E10013B15F /* RCTModalHostViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTModalHostViewController.m; sourceTree = "<group>"; };
|
||||
8385CF331B8B77CD00C6273E /* RCTKeyboardObserver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTKeyboardObserver.h; sourceTree = "<group>"; };
|
||||
8385CF341B8B77CD00C6273E /* RCTKeyboardObserver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTKeyboardObserver.m; sourceTree = "<group>"; };
|
||||
83A1FE8A1B62640A00BE0E65 /* RCTModalHostView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTModalHostView.h; sourceTree = "<group>"; };
|
||||
83A1FE8B1B62640A00BE0E65 /* RCTModalHostView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTModalHostView.m; sourceTree = "<group>"; };
|
||||
83A1FE8D1B62643A00BE0E65 /* RCTModalHostViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTModalHostViewManager.h; sourceTree = "<group>"; };
|
||||
|
@ -335,6 +338,8 @@
|
|||
13B07FE01A69315300A75B9A /* Modules */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
13D9FEE91CDCCECF00158BD7 /* RCTEventEmitter.h */,
|
||||
13D9FEEA1CDCCECF00158BD7 /* RCTEventEmitter.m */,
|
||||
E9B20B791B500126007A2DA7 /* RCTAccessibilityManager.h */,
|
||||
E9B20B7A1B500126007A2DA7 /* RCTAccessibilityManager.m */,
|
||||
13B07FE71A69327A00A75B9A /* RCTAlertManager.h */,
|
||||
|
@ -357,6 +362,8 @@
|
|||
000E6CEA1AB0E980000CDF4D /* RCTSourceCode.m */,
|
||||
13723B4E1A82FD3C00F88898 /* RCTStatusBarManager.h */,
|
||||
13723B4F1A82FD3C00F88898 /* RCTStatusBarManager.m */,
|
||||
13D9FEEC1CDCD93000158BD7 /* RCTKeyboardObserver.h */,
|
||||
13D9FEED1CDCD93000158BD7 /* RCTKeyboardObserver.m */,
|
||||
13B07FED1A69327A00A75B9A /* RCTTiming.h */,
|
||||
13B07FEE1A69327A00A75B9A /* RCTTiming.m */,
|
||||
13E067481A70F434002CDEE1 /* RCTUIManager.h */,
|
||||
|
@ -545,8 +552,6 @@
|
|||
83CBBA631A601ECA00E9B192 /* RCTJavaScriptExecutor.h */,
|
||||
14200DA81AC179B3008EE6BA /* RCTJavaScriptLoader.h */,
|
||||
14200DA91AC179B3008EE6BA /* RCTJavaScriptLoader.m */,
|
||||
8385CF331B8B77CD00C6273E /* RCTKeyboardObserver.h */,
|
||||
8385CF341B8B77CD00C6273E /* RCTKeyboardObserver.m */,
|
||||
13A1F71C1A75392D00D3D453 /* RCTKeyCommands.h */,
|
||||
13A1F71D1A75392D00D3D453 /* RCTKeyCommands.m */,
|
||||
83CBBA4D1A601E3B00E9B192 /* RCTLog.h */,
|
||||
|
@ -685,7 +690,6 @@
|
|||
13CC8A821B17642100940AE7 /* RCTBorderDrawing.m in Sources */,
|
||||
83CBBA511A601E3B00E9B192 /* RCTAssert.m in Sources */,
|
||||
13AF20451AE707F9005F5298 /* RCTSlider.m in Sources */,
|
||||
8385CF351B8B77CD00C6273E /* RCTKeyboardObserver.m in Sources */,
|
||||
58114A501AAE93D500E7D092 /* RCTAsyncLocalStorage.m in Sources */,
|
||||
832348161A77A5AA00B55238 /* Layout.c in Sources */,
|
||||
13513F3C1B1F43F400FCE529 /* RCTProgressViewManager.m in Sources */,
|
||||
|
@ -698,6 +702,7 @@
|
|||
13BB3D021BECD54500932C10 /* RCTImageSource.m in Sources */,
|
||||
58C571C11AA56C1900CDF9C8 /* RCTDatePickerManager.m in Sources */,
|
||||
1450FF8A1BCFF28A00208362 /* RCTProfileTrampoline-x86_64.S in Sources */,
|
||||
13D9FEEB1CDCCECF00158BD7 /* RCTEventEmitter.m in Sources */,
|
||||
14F7A0EC1BDA3B3C003C6C10 /* RCTPerfMonitor.m in Sources */,
|
||||
1450FF881BCFF28A00208362 /* RCTProfileTrampoline-arm64.S in Sources */,
|
||||
13E41EEB1C05CA0B00CD8DAC /* RCTProfileTrampoline-i386.S in Sources */,
|
||||
|
@ -723,6 +728,7 @@
|
|||
13A6E20E1C19AA0C00845B82 /* RCTParserUtils.m in Sources */,
|
||||
13E067571A70F44B002CDEE1 /* RCTView.m in Sources */,
|
||||
13AFBCA01C07247D00BBAEAA /* RCTMapOverlay.m in Sources */,
|
||||
13D9FEEE1CDCD93000158BD7 /* RCTKeyboardObserver.m in Sources */,
|
||||
13456E931ADAD2DE009F94A7 /* RCTConvert+CoreLocation.m in Sources */,
|
||||
137327E91AA5CF210034F82E /* RCTTabBarItemManager.m in Sources */,
|
||||
13A1F71E1A75392D00D3D453 /* RCTKeyCommands.m in Sources */,
|
||||
|
|
Loading…
Reference in New Issue