/** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use strict'; const CompLibrary = require('../../core/CompLibrary.js'); const React = require('react'); const Container = CompLibrary.Container; const GridBlock = CompLibrary.GridBlock; const translate = require('../../server/translate.js').translate; const translation = require('../../server/translation.js'); const siteConfig = require(process.cwd() + '/siteConfig.js'); const githubButton = ( Star ); class Button extends React.Component { render() { return (
{this.props.children}
); } } Button.defaultProps = { target: '_self', }; class HomeSplash extends React.Component { render() { return (
Metro

{siteConfig.title} { translation[this.props.language]['localized-strings'] .tagline }

{githubButton}
); } } class Index extends React.Component { render() { return (
Metro aims for sub-second reload cycles, fast startup and quick bundling speeds. ), image: '/metro/img/content/high-speed-train.png', imageAlign: 'top', title: Fast, }, { content: ( Works with thousands of modules in a single application. ), image: '/metro/img/content/scales.png', imageAlign: 'top', title: Scalable, }, { content: ( Supports every React Native project out of the box. ), image: '/metro/img/content/atom.png', imageAlign: 'top', title: Integrated, }, ]} layout="fourColumn" />
); } } module.exports = Index;