From f9e4ea47e7337858e444896f310fcf65c6d49e45 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Thu, 16 Mar 2017 18:08:56 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/flatlist.html | 2 +- releases/next/docs/integration-with-existing-apps.html | 4 ++++ releases/next/docs/textinput.html | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/releases/next/docs/flatlist.html b/releases/next/docs/flatlist.html index 32fbcd756c3..0ef46e283ca 100644 --- a/releases/next/docs/flatlist.html +++ b/releases/next/docs/flatlist.html @@ -25,7 +25,7 @@ sure to also set the refreshing prop correctly.

viewablePercentThreshold prop.

refreshing?: ?boolean #

Set this true while waiting for new data from a refresh.

renderItem: (info: {item: ItemT, index: number}) => ?React.Element<any> #

Takes an item from data and renders it into the list. Typical usage:

_renderItem = ({item}) => ( <TouchableOpacity onPress={() => this._onPress(item)}> <Text>{item.title}}</Text> - <TouchableOpacity/> + </TouchableOpacity> ); ... <FlatList data={[{title: 'Title Text', key: 'item1'}]} renderItem={this._renderItem} />

Provides additional metadata like index if you need it.

viewabilityConfig?: ViewabilityConfig #

See ViewabilityHelper for flow type and further documentation.

Methods #

scrollToEnd(params?: object) #

Scrolls to the end of the content. May be janky without getItemLayout prop.

scrollToIndex(params: object) #

Scrolls to the item at a the specified index such that it is positioned in the viewable area diff --git a/releases/next/docs/integration-with-existing-apps.html b/releases/next/docs/integration-with-existing-apps.html index cc3edeeecbe..06939d0c391 100644 --- a/releases/next/docs/integration-with-existing-apps.html +++ b/releases/next/docs/integration-with-existing-apps.html @@ -91,6 +91,8 @@ target 'NumberTileGame' 'RCTWebSocket', # needed for debugging # Add any other subspecs you want to use in your project ] + # Explicitly include Yoga if you are using RN >= 0.42.0 + pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga" end

@@ -112,6 +114,8 @@ target 'swift-2048' 'RCTWebSocket', # needed for debugging # Add any other subspecs you want to use in your project ] + # Explicitly include Yoga if you are using RN >= 0.42.0 + pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga" end
diff --git a/releases/next/docs/textinput.html b/releases/next/docs/textinput.html index cfe47b4f648..e277b063081 100644 --- a/releases/next/docs/textinput.html +++ b/releases/next/docs/textinput.html @@ -91,7 +91,7 @@ The default value is false.

blurOnSubmit to true means that pressing return will blur the field and trigger the -onSubmitEditing event instead of inserting a newline into the field.

caretHidden?: bool #

If true, caret is hidden. The default value is false.

defaultValue?: node #

Provides an initial value that will change when the user starts typing. +onSubmitEditing event instead of inserting a newline into the field.

caretHidden?: bool #

If true, caret is hidden. The default value is false.

defaultValue?: string #

Provides an initial value that will change when the user starts typing. Useful for simple use-cases where you do not want to deal with listening to events and updating the value prop to keep the controlled state in sync.

editable?: bool #

If false, text is not editable. The default value is true.

keyboardType?: enum('default', 'email-address', 'numeric', 'phone-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'number-pad', 'name-phone-pad', 'decimal-pad', 'twitter', 'web-search') #

Determines which keyboard to open, e.g.numeric.

The following values work across platforms:

  • default
  • numeric
  • email-address
  • phone-pad

maxLength?: number #

Limits the maximum number of characters that can be entered. Use this instead of implementing the logic in JS to avoid flicker.

multiline?: bool #

If true, the text input can be multiple lines.