// here is the function check = async () => { if (this.state.categories.includes(e.value)) { let remove = this.state.categories.filter(cat => cat.value != e.value) ...
in react native i am passing a state to stateless component and from there i am triggering an onChangeText method to call a function on the parent so i could setState to the n...
i did something like this for (var i = 0; i < barcodes.length; i++) { if (i && (i % 100 == 0)) { let filter = await Api.get(`api/resource/Product Import?limit_...
async function auth () { let user = await localStorage.getItem('user'); console.log(user); if (user) return true; else return false } console.log('hello world'); con...
how can i use for loop for every 100 item ? i found ad answer in stackoverflow that fixed this problem by adding if (i && (i % 100 == 0)) {} but the problem is the last set i...
hi, i want to export multiple values wrapped in HOC like so, export withNavigation({ Provider, Consumer }) but it throws an error, how may i do that ?
_validatePresence = (obj) => { for (let key in obj) { if (!obj[key]) { this.setState({ [key + 'Error'] : key + ' is required'}) return false } ...
Cuz i want to optimize my try block and i hate writing a block of if statement i mean it would be much cleaner to write it like the way @TRGWII mentioned and handle the error ...
anyone might help ? https://stackoverflow.com/questions/53748983/react-native-opentok-publisher-not-showing
I want to replace the dots in the JWT token with some unique character that I can later split the JWT token and re add the dots, my question is there any character that can be...
i wanted to ask you guys a question, can i use sequelize in react to read, update and send queries to mysql database directly ?
I have a chat screen that renders images perfectly in the simulator but not on a real device .. anyone knows why might that happen ? 🤔
Hi, human beings and bot. Quick question how can i assign a variable to an existing array with detecting the from and to index ? like from index one to five for example ?
I'm using axios with electron, the most wierd behavior is that the cookies are deleted after one POST request .. anyone had a similar issue ?
anyone here might help ? i've been struggling with this issue since morning .. https://stackoverflow.com/questions/52076950/react-native-get-data-from-child-component
Great, is there a way to throw a response as an error instead of manually checking for error properties in my try block and displaying my custom errors ?
in react-native how can i trigger a function in my component from the static button i add to the header of react navigation stack navigator ?
great, what about getting rid of switch ? you said i could even get rid of switch .. how may i achieve the same result ? is there a better way for that also ?
no it won't, it's a long story actually but that's the last resort, could you tell me please how to connect to it using atom ?
https://stackoverflow.com/questions/52239661/react-native-firebase-push-snapshots-to-array/52240101 anyone interested in helping me with this ? 💔