From 69962ae815580d0b2e7f087cceac713dc27c74f8 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 16 Mar 2016 10:03:37 -0700 Subject: [PATCH] [fix] StyleSheet: add hairlineWidth Fix #99 --- docs/apis/StyleSheet.md | 6 ++++++ src/apis/StyleSheet/index.js | 1 + 2 files changed, 7 insertions(+) diff --git a/docs/apis/StyleSheet.md b/docs/apis/StyleSheet.md index d4a340a3..c85a64e0 100644 --- a/docs/apis/StyleSheet.md +++ b/docs/apis/StyleSheet.md @@ -11,6 +11,12 @@ outside of the render loop and are applied as inline styles. Read more about to Each key of the object passed to `create` must define a style object. +## Properties + +**hairlineWidth**: number + +**flatten**: function + ## Example ```js diff --git a/src/apis/StyleSheet/index.js b/src/apis/StyleSheet/index.js index 87df755d..dd7d22d9 100644 --- a/src/apis/StyleSheet/index.js +++ b/src/apis/StyleSheet/index.js @@ -70,6 +70,7 @@ module.exports = { _renderToString, create, elementId: ELEMENT_ID, + hairlineWidth: 1, flatten: flattenStyle, resolve }