Files
react-native/packages/rn-tester/js/components/createExamplePage.js
T
Pieter Vanderwerff ee3d3c248d Add missing class annotations xplat/js
Reviewed By: SamChou19815

Differential Revision: D38373443

fbshipit-source-id: 1222c4845ebd6b72bd6f54af1a27cf8542dd883a
2022-08-03 12:43:58 -07:00

32 lines
725 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 React = require('react');
import RNTesterModuleContainer from './RNTesterModuleContainer';
import type {RNTesterModule} from '../types/RNTesterTypes';
const createExamplePage = function (
title: ?string,
exampleModule: RNTesterModule,
): React.ComponentType<any> {
class ExamplePage extends React.Component<{...}> {
render(): React.Node {
return <RNTesterModuleContainer module={exampleModule} />;
}
}
return ExamplePage;
};
module.exports = createExamplePage;