I hereby claim:
- I am aakashsigdel on github.
- I am aakashsigdel (https://keybase.io/aakashsigdel) on keybase.
- I have a public key ASBydf6x_X26JyH0ZME5GGyU0K8Y7AQOcOtANJ0NTxQlLQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // eg: [[1,2,[3]],4] -> [1,2,3,4] | |
| const flattenAnArray = (orgArr) => { | |
| return orgArr.reduce((prevValue, arrayOrNot) => { | |
| return prevValue.concat(Array.isArray(arrayOrNot) ? flattenAnArray(arrayOrNot) : arrayOrNot) | |
| }, []) | |
| } |
| import React, { | |
| Alert, | |
| Component, | |
| Text | |
| } from 'react-native' | |
| import { bindActionCreators } from 'redux' | |
| import { connect } from 'react-redux' | |
| import ProfileIndex from '../components/Profile/ProfileIndex' | |
| import Mixpanel, * as MixpanelConfig from '../constants/MixPanelConfigs' | |
| import * as VideoActionCreators from '../redux_x/actions/videoActionCreators' |