From c06ee9225158cdfd9546adb9ae115269dbaaec18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Sj=C3=B6lander?= Date: Tue, 13 Feb 2018 07:34:42 -0800 Subject: [PATCH] Add standalone docs Reviewed By: danielbuechele Differential Revision: D6976384 fbshipit-source-id: 329dd6b5997ab83d408fb330421624cf85e3f09e --- .../contents/getting-started/standalone.md | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/website/contents/getting-started/standalone.md b/website/contents/getting-started/standalone.md index 434dedc1..5030591f 100644 --- a/website/contents/getting-started/standalone.md +++ b/website/contents/getting-started/standalone.md @@ -4,4 +4,32 @@ title: "Standalone" hasPlayground: false --- -## Standalone +# Standalone + +Adding Yoga to a project is as simple as adding the dependency to your package manager of choice. + +### Android + +```groovy +dependencies { + compile 'com.facebook.yoga.android:yoga-layout:x.x.x' +} +``` + +### Javascript + +``` +$> yarn add yoga-layout +``` + +### iOS + +``` +pod 'YogaKit', '~> 1.7' +``` + +## Including Yoga From Source + +If you plan to include Yoga from Source in a C++ project then all you have to do is inlude +the top level `yoga` folder. Make sure to look at the top level `BUCK` file to ensure you build +using the same compiler flags.