From 8b87c221aaabc5a08b4067484ef3ea1ce630dd5e Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 10 Apr 2015 19:31:07 +0000 Subject: [PATCH] update website --- docs/navigatorios.html | 2 +- docs/stylesheet.html | 2 +- docs/textinput.html | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/navigatorios.html b/docs/navigatorios.html index 852d13c47c1..f97d4993d6b 100644 --- a/docs/navigatorios.html +++ b/docs/navigatorios.html @@ -36,7 +36,7 @@ transitions back to it
  • resetTo(route) - Replaces the top it });

    Edit on GitHubProps #

    initialRoute {component: function, title: string, passProps: object, backButtonTitle: string, rightButtonTitle: string, onRightButtonPress: function, wrapperStyle: [object Object]} #

    NavigatorIOS uses "route" objects to identify child views, their props, and navigation bar configuration. "push" and all the other navigation operations expect routes to be like this:

    itemWrapperStyle View#style #

    The default wrapper style for components in the navigator. -A common use case is to set the backgroundColor for every page

    tintColor string #

    The color used for buttons in the navigation bar

    Edit on GitHubExamples #

    'use strict'; +A common use case is to set the backgroundColor for every page

    navigationBarHidden bool #

    A Boolean value that indicates whether the navigation bar is hidden

    tintColor string #

    The color used for buttons in the navigation bar

    Edit on GitHubExamples #

    'use strict'; var React = require('react-native'); var ViewExample = require('./ViewExample'); diff --git a/docs/stylesheet.html b/docs/stylesheet.html index 72cb13e60ba..f29ac80bd2f 100644 --- a/docs/stylesheet.html +++ b/docs/stylesheet.html @@ -14,7 +14,7 @@ });

    Use a StyleSheet:

    <View style={styles.container}> <Text style={[styles.title, this.props.isActive && styles.activeTitle]} /> </View>

    Code quality:

    • By moving styles away from the render function, you're making the code -code easier to understand.
    • Naming the styles is a good way to add meaning to the low level components +easier to understand.
    • Naming the styles is a good way to add meaning to the low level components in the render function.

    Performance:

    • Making a stylesheet from a style object makes it possible to refer to it by ID instead of creating a new style object every time.
    • It also allows to send the style only once through the bridge. All subsequent uses are going to refer an id (not implemented yet).

    Methods #

    static create(obj: {[key: string]: any}) #

    © 2015 Facebook Inc.