Posts by gmtlme • 150 points
10 posts
-
2
votes1
answer69
viewsA: React Native Hooks
Altered code: import React, { } from 'react' import { View, Text, StyleSheet, TouchableOpacity, SafeAreaView } from 'react-native' import { useNavigation } from '@react-navigation/native' import…
-
0
votes1
answer2942
viewsA: (React Native) Typeerror: Undefined is not an Object (evaluating '_this.props.navigation')
Maybe it’s the way you exported your page to the route, I’ll rewrite the code to show you how to build the route and the page according to the new api of React navigation and React itself. 1.…
-
1
votes1
answer352
viewsA: Error 4294963238 - React-Native-Gesture-Handler with EXPO
Good morning, just run cmd as administrator and run the following command: npm install --global windows-build-tools, done this just run expo install React-Native-Gesture-Handler again it will be a…
-
2
votes1
answer805
viewsA: Basic Javascript - how to remove a comma from the string
You must have used the .join('') wrong. let res2 = ["E", "L"] let res3 = res2.join(' ') console.log(res3) Functional code above.…
-
0
votes1
answer1773
viewsQ: Spacing between items in the navbar - Bootstrap
I wish to place a small spacing between navbar items (home, about, contact, store and disabled). <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta…
-
0
votes1
answer116
viewsQ: How to highlight a table element from the JS
I am making a simple bingo using html, css, ajax and JS. Table elements are brought from a request, within an array and placed in the table(...). Using the onclick function, picked a random number…
-
-1
votes1
answer816
viewsQ: Printing an array with all elements on the same line
Why when we ride a array, as in the following code: let x = 0 let array7 = new Array for(x = 0; x < 50; x++){ array7[x] = Math.floor(Math.random() * 50 - 10 + 10) } let array8 =…
-
1
votes2
answers107
viewsQ: How does a function know how to take the elements of an array if they are not being passed to the function?
Hello, the following code is correct, but I would like to understand one thing: const Carros = ['Mercedes', 'Ferrari', 'BMW'] function imprimir(nome, indice){ console.log(`${indice + 1}. ${nome}`) }…
-
0
votes2
answers373
viewsQ: How to change body color with onclick() from Buttons? Javascript
Hello, in the following exercise, there should be 3 Buttons, and clicking on each one, will change the body color by the color indicated on the button (using the same function for all), however my…
-
0
votes2
answers294
viewsQ: How can I finish a setInterval?
Hello, I wonder if it is possible to stop a setinterval after a certain time, if possible, as?
javascriptasked gmtlme 150