This repository contains code and snippets to go along with React Native in Action, written for Manning Publications.
Code samples will be arranged by chapter. Any future breaking changes will be updated as soon as I am aware of them.
React Native in Action, written for Manning Publications
This repository contains code and snippets to go along with React Native in Action, written for Manning Publications.
Code samples will be arranged by chapter. Any future breaking changes will be updated as soon as I am aware of them.
src/index.js
react-native-navigation version 3.x
import {
createBottomTabNavigator,
createStackNavigator,
createAppContainer } from 'react-navigation'
...
export default createAppContainer(Tabs)
In my case,
react-native-navigation has some problems..
so I added ..
react-native-gesture-handler
then run
react-native link
the code should look like ๐
` try {
let cities = await AsyncStorage.getItem(key)
if (cities !== null) {
console.log(cities);
cities = JSON.parse(cities)
this.setState({ cities })}
} catch (e) {
console.log('error from AsyncStorage: ', e)
}`
must check for null values other wise you will get ๐
error from AsyncStorage: TypeError: TypeError: Cannot read property 'length' of null
Thanks,
i'm struggling to find user.png used in Listing 4.10 where can i find chapter 4.
selected prop is not being pass from parent component. I realized this when following the example code with typescript.
thanks!
I can not find source codes..
Have you any plan?
After cloning the repo and before running npm i, the user needs to cd into the directory for the project (e.g., react-native-in-action/StarWars for chapter 6).
Hi,
I am not able to checkout chapter6. I get the error below on a windows 7 box. How to fix it?
Thx,
Couldn't checkout origin/chapter6
fatal: cannot create directory at 'ios/build/Build/Intermediates.noindex/RCTActionSheet.build/Debug-iphonesimulator/RCTActionSheet.build/StaticAnalyzer/RCTActionSheet/RCTActionSheet': Filename too long
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.