state vs props in react natve code example
Example 1: react native anination 2 valuse
Animated.parallel([
Animated.timing(this.state.opacity, {
toValue: 0,
duration: 300
}),
Animated.timing(this.state.height, {
toValue: 0,
duration: 300
})
]).start(() => {
// callback
});
Example 2: react sagas state
import { select } from 'redux-saga/effects';
...
let data = yield select(stateSelectorFunction);