/** * 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. */ const React = require("react"); const CompLibrary = require("../core/CompLibrary.js"); const Container = CompLibrary.Container; const siteConfig = require(process.cwd() + "/siteConfig.js"); const showcaseApps = siteConfig.users; const pinnedApps = showcaseApps.filter(app => { return app.pinned; }); const featuredApps = showcaseApps.filter(app => { return !app.pinned; }).sort(function(a, b) { return a.name.localeCompare(b.name); }); const apps = pinnedApps.concat(featuredApps); class ShowcaseAppIcon extends React.Component { render() { return ( {this.props.name} ); } } class AppList extends React.Component { constructor(props, context) { super(props, context); this._renderApp = this._renderApp.bind(this); this._renderAppIcon = this._renderAppIcon.bind(this); this._renderAppName = this._renderAppName.bind(this); this._renderInfo = this._renderInfo.bind(this); this._renderLinks = this._renderLinks.bind(this); } render() { return (
{this.props.apps.map(this._renderApp)}
); } _renderApp(app, i) { return (
{this._renderAppName(app.name)} {this._renderLinks(app)} {this._renderInfo(app.infoTitle, app.infoLink)}
); } _renderAppIcon(app) { return {app.name}; } _renderAppName(name) { return

{name}

; } _renderInfo(title, uri) { let info = null; if (uri) { info =

{title}

; } return ( info ); } _renderLinks(app) { if (!app.linkAppStore && !app.linkPlayStore) { return; } var linkAppStore = app.linkAppStore ? iOS : ''; var linkPlayStore = app.linkPlayStore ? Android : ''; return (

{linkAppStore} {linkAppStore && linkPlayStore ? ' ยท ' : ''} {linkPlayStore}

); } } class Users extends React.Component { render() { return (

Who's using React Native?

Thousands of apps are using React Native, from established Fortune 500 companies to hot new startups. If you're curious to see what can be accomplished with React Native, check out these apps!

Some of these are hybrid native/React Native apps.

A curated list of open source React Native apps is also being kept by React Native News.

); } } Users.defaultProps = { language: "en" }; module.exports = Users;