April 2017
Intermediate to advanced
414 pages
8h 14m
English
Components in Redux will retain their JSX markup, but any logic that isn't specific to that exact component is kept by our state tree and modified through actions and reducers:
// TasksRedux/app/components/TasksList/index.js
import React, { Component } from 'react';
import {
ListView,
Platform,
TextInput,
View
} from 'react-native';
React Native APIs and components such as AsyncStorage have been removed from this component, since any calls to any storage methods will be handled by our actions and reducers in the future.
Create a new ListView.DataSource instance, since it is specific to this component:
import TasksListCell from '../TasksListCell'; import styles from './styles'; export default class TasksList ...
Read now
Unlock full access