Imagine we have a reducer to control a list of items:
function listOfItems(state: Array<Object> = [], action: Object = {}): Array<Object> {
switch(action.type) {
case 'SHOW_ALL_ITEMS':
return action.data.items
default:| diff --git a/node_modules/react-native-video/android-exoplayer/build.gradle b/node_modules/react-native-video/android-exoplayer/build.gradle | |
| index 5baf953..ae7a84e 100644 | |
| --- a/node_modules/react-native-video/android-exoplayer/build.gradle | |
| +++ b/node_modules/react-native-video/android-exoplayer/build.gradle | |
| @@ -23,7 +23,10 @@ android { | |
| dependencies { | |
| implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}" | |
| - implementation('com.google.android.exoplayer:exoplayer:2.9.3') { | |
| + |
| { | |
| "presets": ["es2015"], | |
| "plugins": ["transform-async-to-generator"] | |
| } |