mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 17:45:59 +00:00
47a470a97c
Summary:Adding the react native renderer dependency and various fixes to support React 15. Don't use dispatchID for touchableHandleResponderGrant This callback argument was removed because "IDs" no longer exist. Instead, we'll use the tag from the event target. The corresponding PR on React Core is: https://github.com/facebook/react/pull/6338 Reviewed By: spicyj Differential Revision: D3159788 fb-gh-sync-id: 60e5cd2aa0af69d83fcdac3dfde0a85a748cb7b9 fbshipit-source-id: 60e5cd2aa0af69d83fcdac3dfde0a85a748cb7b9
42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
/**
|
|
* 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.
|
|
*
|
|
* Utility class to provide the component owner hierarchy to native code for
|
|
* debugging purposes.
|
|
*
|
|
* @providesModule RCTDebugComponentOwnership
|
|
* @flow
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var BatchedBridge = require('BatchedBridge');
|
|
|
|
var RCTDebugComponentOwnership = {
|
|
/**
|
|
* Asynchronously returns the owner hierarchy as an array of strings. Request id is
|
|
* passed along to the native module so that the native module can identify the
|
|
* particular call instance.
|
|
*
|
|
* Example returned owner hierarchy: ['RootView', 'Dialog', 'TitleView', 'Text']
|
|
*/
|
|
getOwnerHierarchy: function(requestID: number, tag: number) {
|
|
// Consider cleaning up these unused modules in a separate diff.
|
|
throw new Error(
|
|
'This seems to be unused. Will disable until it is needed again.'
|
|
);
|
|
},
|
|
};
|
|
|
|
BatchedBridge.registerCallableModule(
|
|
'RCTDebugComponentOwnership',
|
|
RCTDebugComponentOwnership
|
|
);
|
|
|
|
module.exports = RCTDebugComponentOwnership;
|