From 7888c06a7b91af4ca41c03eb2cb7098e40838640 Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Fri, 28 Apr 2017 03:59:07 -0700 Subject: [PATCH] clarify the picker onValueChange Summary: In the current docs, it's not quite clear, at the first sight, what the `lang` parameter passed to `onValueChange` is. This makes it obvious. Closes https://github.com/facebook/react-native/pull/13617 Differential Revision: D4969592 Pulled By: javache fbshipit-source-id: e94bedefebbe19d838d010f0c79d9a76743a4341 --- Libraries/Components/Picker/Picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/Picker/Picker.js b/Libraries/Components/Picker/Picker.js index 5fa62bdfa..39b2cdfb8 100644 --- a/Libraries/Components/Picker/Picker.js +++ b/Libraries/Components/Picker/Picker.js @@ -77,7 +77,7 @@ class PickerItem extends React.Component { * * this.setState({language: lang})}> + * onValueChange={(itemValue, itemIndex) => this.setState({language: itemValue})}> * * *