mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d86412dcc6
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47943 Changelog: [Internal] Reviewed By: panagosg7 Differential Revision: D66461724 fbshipit-source-id: b526ed1617667b70337472f4dad4e19f152a266b
28 lines
970 B
JavaScript
28 lines
970 B
JavaScript
/**
|
|
* 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.
|
|
*
|
|
* @flow strict-local
|
|
* @format
|
|
*/
|
|
|
|
import type {RNTesterModuleExample} from '../../types/RNTesterTypes';
|
|
|
|
import * as MutationObserverExample from './MutationObserverExample';
|
|
import * as VisualCompletionExample from './VisualCompletionExample/VisualCompletionExample';
|
|
|
|
export const framework = 'React';
|
|
export const title = 'MutationObserver';
|
|
export const category = 'UI';
|
|
export const documentationURL =
|
|
'https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver';
|
|
export const description = 'API to detect mutations in React Native nodes.';
|
|
export const showIndividualExamples = true;
|
|
export const examples: Array<RNTesterModuleExample> = [MutationObserverExample];
|
|
|
|
if (typeof IntersectionObserver !== 'undefined') {
|
|
examples.push(VisualCompletionExample);
|
|
}
|