Posts by Luh • 103 points
6 posts
-
0
votes3
answers125
viewsQ: Check whether an item exists within an array, using a variable
Let’s say I have this array: let checkOne = [ { "id": 273, "attributes": { "humidity": { "qty": 74.3223333333333, "unit": "percents" }, "protein": { "qty": 23.525, "unit": "g" }, "lipid": { "qty":…
-
0
votes2
answers113
viewsA: Prevent screen scrolling when opening modal in Reactjs
With the help of my colleague @Rafaelcosta I managed to reach this answer: isModalVisible ? $("nome_da_classe_ou_id").css({"position":"fixed"}) :…
-
0
votes2
answers113
viewsQ: Prevent screen scrolling when opening modal in Reactjs
Hello, I am creating a site where one of the pages has a list of various clickable items (such as a ? shop window' of online stores), when clicked will open a modal that will be in front of all…
-
0
votes1
answer203
viewsQ: Problem when trying to call a function inside onPress - React Native
Hello, When trying to call a function that has a hook call the following error appears: And here’s the excerpt from the code: currentLocation.js import React, {useState} from 'react' export function…
-
-1
votes1
answer1333
viewsQ: How to let a component occupy 100% of the remaining height
I’m trying to get this pink rectangle to occupy the rest of the screen, more specifically... responsive height, tried some shapes, but unsuccessfully. How to proceed? OBS: I’m using the…
-
8
votes3
answers1939
viewsQ: Separate integer and decimal part into a number using Javascript
I’m trying to make an algorithm that consists of: Take a number, for example 46.5. Go through this value and divide the entire part of the floating, ie, the whole part will stay in one variable, and…
javascriptasked Luh 103