/** * Copyright (c) 2014-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. * * @flow * @format */ import {Button} from 'antd'; import React from 'react'; import Page from '../components/Page'; import Padded from '../components/Padded'; import Playground from '../components/Playground'; import {Row, Col} from 'antd'; import './index.css'; import ReactNativeLogo from './logos/reactnative.png'; import LithoLogo from './logos/litho.png'; import ComponentKitLogo from './logos/componentkit.png'; import Link from 'gatsby-link'; const HeroSection = () => (

INTRODUCING

Flexible Layouts
with Yoga

Build flexible layouts on any platform with a highly optimized layout engine designed with speed, size, and ease of use in mind. Yoga is open source and ready for you to use today.

); const PlaygroundSection = () => ( ); const AboutSectionOne = () => (

Foundation of Many Open Source UI Frameworks

There are a large number of open source UI Frameworks which rely on Yoga to power their layout. Yoga enables these frameworks to perform layout in a simple and intuitive way across all platforms. This allows engineers across platforms to collaborate more easily. Yoga allows these frameworks to calculate layouts off the main thread to help ensure optimal UI performance.

); const AboutSectionTwo = () => (

Why You May Consider Yoga

PERFORMANCE

Yoga was built to be fast and performance will always be one of Yoga's primary goals. We believe that for a layout engine to be able to power any range of applications it needs to be fast and never stand in the way of a fluid user experience.

CROSS PLATFORM

Yoga is built with cross platform in mind. To ensure Yoga can be used anywhere we have written is in portable C/C++ and tried to keep both the dependencies and final binary size impact as low as possible. This means you can use Yoga on iOS and Android, sharing knowledge and potentially code between platforms.

EASY TO LEARN

With Yoga we have focused on making it as easy as possible to pick up and learn. With interactive documentation pages and a fully fledged layout editor we believe that any engineering team can get up to speed in record time. If you are using Yoga with any of the major UI frameworks we even provide generated code from the layout editor.

); const Footer = () => ( ); export default () => (