Files
react-native/packages/rn-tester/js/examples/TurboModule/LegacyModuleExample.js
Nick GerlemanandFacebook GitHub Bot a7e7651586 Use standard infra for sample legacy module example
Summary: Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D72896577

fbshipit-source-id: 5d3d10a274385e9c73eda48f841fdf58e1f0869a
2025-04-14 19:34:27 -07:00

31 lines
715 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.
*
* @format
* @flow
*/
'use strict';
const {
default: SampleLegacyModuleExample,
} = require('./SampleLegacyModuleExample');
const React = require('react');
exports.displayName = (undefined: ?string);
exports.title = 'Legacy Native Module';
exports.category = 'Basic';
exports.description = 'Usage of legacy Native Module';
exports.examples = [
{
title: 'SampleLegacyModule',
name: 'SampleLegacyModule',
render: function (): React.MixedElement {
return <SampleLegacyModuleExample />;
},
},
];