Posts by Serginho junio • 111 points
10 posts
-
0
votes2
answers410
viewsA: API request error on localhost: "Possible Unhandled Promise Rejection"
What error is being returned? Try to use fetch this way fetch(`${BASE_API}/create`,{ method:'post', headers:{ 'Content-Type':'application/json', }, body:JSON.stringify({ academia:a1, usuario:a2,…
-
0
votes1
answer373
viewsA: How to catch the current Geolocation of the cell phone using React Native?
import Geolocation from '@react-native-community/geolocation'; const [CurrentRegion, setCurrentRegion] = useState(null); async function loadInitialPosition(){ await Geolocation.getCurrentPosition(…
-
0
votes1
answer123
viewsA: Flatlist is not rendering - React Native
Sorry, I was using a project I already had and I saw that I was pulling my data and not yours Create a folder called data.js and save the data const specialties = { docs:[ { id:1,…
react-nativeanswered Serginho junio 111 -
0
votes1
answer234
viewsA: I’m not getting the token with Asyncstorage in React Native
I don’t know what you want to do, but I’ll assume it’s a login using the token. await AsyncStorage.setItem("save",JSON.stringify(r)) that r is the user login data along with the token and on…
-
1
votes1
answer155
viewsA: Axios: stop in GET does not work - React Native
async function loadDatas(){ const res = await api.get('/user/read/establishment',{ <-- add params:{ category: "tecnologias" <-- coloca aspas e muda o nome } }) setCategory(res.data) <--…
-
1
votes1
answer58
viewsA: Creating a like with Node.js and mongodb
First you will have to filter the users within the array const UsuarioReceptor = await Grap2.findById(devId);//não preciso mexer em nada aqui. --> const filterRocket =…
-
0
votes1
answer61
viewsA: Error registering user in database with Nodejs + React Native
as I don’t have your api, so I’ll assume that (name, age, ...) is what’s in your api //a1,a2... you can change it to another name const [a1, setName] = useState(''); const [a2, setIdade] =…
-
0
votes1
answer47
viewsQ: Display of personal data in a table
Good morning I would like to know how to display only my name that is in the database instead of displaying everything in a table. public Function all(){ $sql = $this->con->prepare("SELECT *…
phpasked Serginho junio 111 -
0
votes0
answers43
viewsQ: Register using php and mysql
Good night. I’ve created a registration system that’s working. What happens is when I register a user, it stays in the bank but when I reload or return a page is added another ghost user (because…
phpasked Serginho junio 111 -
0
votes1
answer66
viewsQ: everything I’m using on this site HTML + CSS + JS + PHP
I am having a problem with this work and would like a help, I would like to save what was written without reloading the page after clicking on "save". sorry if it got a little messy, first time…