react-native-web
Version:
React Native for Web
29 lines (27 loc) • 747 B
JavaScript
;
exports.__esModule = true;
exports.default = void 0;
var _reactDom = require("react-dom");
/**
* Copyright (c) Nicolas Gallagher.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
/**
* @deprecated imperatively finding the DOM element of a react component has been deprecated in React 18.
* You should use ref properties on the component instead.
*/
var findNodeHandle = component => {
var node;
try {
node = (0, _reactDom.findDOMNode)(component);
} catch (e) {}
return node;
};
var _default = findNodeHandle;
exports.default = _default;
module.exports = exports.default;