Count()
is O(n).
This can send a new developer running to the hills, as it seems like a trivial problem, however it is not. While we hope this gets addressed in the future (even in a non ideal way), there are work arounds.
Relevant Issues:
// approach 1: define action object in the component | |
this.props.dispatch({ | |
type : "EDIT_ITEM_ATTRIBUTES", | |
payload : { | |
item : {itemID, itemType}, | |
newAttributes : newValue, | |
} | |
}); | |
// approach 2: use an action creator function |
/* eslint-disable no-console, no-shadow */ | |
const exec = require('child_process').exec; | |
const fs = require('fs'); | |
// const type = process.argv[2] || 'icons'; | |
const path = `./assets/svgs/originals`; | |
const svgoOptions = { | |
plugins: [ | |
{ collapseGroups: true }, | |
{ convertPathData: true }, |
'use strict'; | |
import React, { | |
AppRegistry, | |
Component, | |
StyleSheet, | |
Text, | |
View, | |
TouchableOpacity, | |
LayoutAnimation, | |
} from 'react-native'; |
Count()
is O(n).
This can send a new developer running to the hills, as it seems like a trivial problem, however it is not. While we hope this gets addressed in the future (even in a non ideal way), there are work arounds.
Relevant Issues: