mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fa3243ad33
Summary: Changelog: [Internal] - Rename some types and components in RNTester to support work for tertiary levels of navigation. module = component | api moduleExample = an example of a certain feature a module Reviewed By: kacieb Differential Revision: D29381875 fbshipit-source-id: c348bcbb73aaf95e85928bb14080a097e685cc78
32 lines
710 B
JavaScript
32 lines
710 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its 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() {
|
|
return <RNTesterModuleContainer module={exampleModule} />;
|
|
}
|
|
}
|
|
|
|
return ExamplePage;
|
|
};
|
|
|
|
module.exports = createExamplePage;
|