In this lesson we'll use the ListView component to render a list of items that were entered. We'll show how to setup a ListView.DataSource and how to render custom rows with performance in mind.
Hi ! stuck at the same point You can review my code : https://github.com/orassr/ReactNative
I've gone ahead and added in syntax fixes as a PR https://github.com/orassr/ReactNative/pull/1
For those watching, it appears I misspelled
This is no longer needed either as you can pass
keyboardDismissMode="on-drag" as found in the React Native ScrollView documentation here https://facebook.github.io/react-native/docs/scrollview.html#props
Thank you for the quick respond !
still not working after changes
setState(...):Expected the last optional
callback arguments be a function. instead received: Array(keys:0).
You are calling
setState here https://github.com/orassr/ReactNative/blob/master/app.js#L51 instead of
Also here https://github.com/orassr/ReactNative/blob/master/row.js#L8 you are referencing
style.text and it should be
styles.text. If you fix those it will work.
Fixed ! thank you for your patience.
Nice tutorial! Could you explain why/how you are showing that three-tiered symbol instead of !== in your datasource snippet? It may not be immediately obvious to all that they are equivalent...
I'm using the
create-react-native-app, and since there is no tutorial on egghead using this tool I decided to follow along with this one. The course was going great until I ran into an issue with this video. The error is:
ScrollView has no propType for native prop
RCTScrollView.contenInsetAdjustmentBehavior of native type
However, my Xcode is up to date and I'm using node v6.11.5. Any ideas on where I might be able to go from here?
Seems as though
ListView is deprecated https://facebook.github.io/react-native/docs/listview.html