Errata

React Native Cookbook

Errata for React Native Cookbook

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed, PDF Page back cover
back cover

Please add this quote to the back cover and/or to a praise page inside the book:

“I love how this book increases in complexity as it progresses to help readers of all backgrounds. It starts off simple enough to help newcomers grasp the fundamentals of app development. Further along, it helps readers understand how to make their programs safer and simpler to understand by introducing new tools and how they fit together in small incremental steps.”
- Arnar Thor Sveinsson, Software Engineer, Viska

Nan Barber
 
Mar 01, 2018 
PDF Page 1
Displaying a list of items

ListView has been deprecated and replaced with FlatList.

<FlatList
data={data}
keyExtractor={(item) => {
return item.items;
}}
renderItem={({ item })=> {
return (
<View style={ styles.row }>
<View style={ styles.iconContainer }>
<Image source={ basketIcon } style={ styles.icon } />
</View>
<View style={ styles.info }>
<Text style={ styles.items }>{item.items} Items</Text>
<Text style={ styles.address }>{item.address}</Text>
</View>
<View style={ styles.total }>
<Text style={ styles.date }>{item.date} Items</Text>
<Text style={ styles.price }>{item.total}</Text>
</View>
</View>
);
}}
/>

Warren  Apr 19, 2020