mirror of
https://github.com/status-im/react-native.git
synced 2025-02-23 22:58:19 +00:00
Summary: I removed `var` in RNTester. - [x] npm run prettier - [x] npm run flow-check-ios - [x] npm run flow-check-android [GENERAL] [ENHANCEMENT] [RNTester] - remove `var` Pull Request resolved: https://github.com/facebook/react-native/pull/22013 Differential Revision: D12849927 Pulled By: TheSavior fbshipit-source-id: 4a2fd11939bd8ae8604ef59512f532adc0a09eda
33 lines
718 B
JavaScript
33 lines
718 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');
|
|
|
|
const RNTesterExampleContainer = require('./RNTesterExampleContainer');
|
|
|
|
import type {ExampleModule} from 'ExampleTypes';
|
|
|
|
const createExamplePage = function(
|
|
title: ?string,
|
|
exampleModule: ExampleModule,
|
|
): React.ComponentType<any> {
|
|
class ExamplePage extends React.Component<{}> {
|
|
render() {
|
|
return <RNTesterExampleContainer module={exampleModule} title={title} />;
|
|
}
|
|
}
|
|
|
|
return ExamplePage;
|
|
};
|
|
|
|
module.exports = createExamplePage;
|