Questions tagged [react-web]
24 questions
66
votes
16 answers
react long press event
Is there a way to add long press event in react-web application?
I have list of addresses. On long press on any address, I want to fire event to delete that address followed by a confirm box.

Binit Ghetiya
- 1,919
- 2
- 21
- 31
15
votes
3 answers
formik warning, A component is changing an uncontrolled input of type text to be controlled
I am developing a dynamic form in React JS, when the user clicks on the Add button, the Register form is added to screen. In the Register form I am using formik for validation.
The form is dynamically adding successfully but whenever I start…

ppb
- 2,299
- 4
- 43
- 75
2
votes
0 answers
Integrate react-native (web) into Django. How to add a prefix to all urls?
I'm using react-navigation and trying to figure out how to add a prefix to all endpoints. Follows my LinkingConfiguration which doesn't do what I want:
// const prefixes = [Linking.makeUrl('/app')];
const prefixes = ['example://app/',…

gmagno
- 1,770
- 1
- 19
- 40
2
votes
0 answers
JS chunks built with Expo web are too heavy
I am building the web version of my mobile app and I am running into a huge size issue. When I run expo build:web, the bundled js chunk files, 2.xxxx.chunk.js and app.xxxx.chunk.js, weight respectively 1.7mb and 1mb, which seems to be way too…

Ryan Pergent
- 4,432
- 3
- 36
- 78
2
votes
1 answer
Can I host my React Native app to my website using cpanel?
I'm currently developing a website using React Native, when I read about React Native I got the info that React Native can be used as both a web application and a mobile application, so I tried it.
Currently, my website is finished and can be run on…

SanMargo
- 33
- 1
- 6
1
vote
0 answers
Is there a way to remove domain in the push notification from Notification API
Hey I am currently using a package react-web-notification on my React Web
https://www.npmjs.com/package/react-web-notification
I am trying to remove the domain inside the notification, but couldn't find a way to do that.
Currently both Chrome and…

Liu Hantao
- 620
- 1
- 9
- 19
1
vote
2 answers
How to link two separate pages in React?
I have two pages Sign Up and Sign In within a folder named components and I am trying to link sign up page with sign in page using . But it's giving some error.
components/ SignUp.js
Already have an…

DigiLeon
- 76
- 1
- 2
- 10
1
vote
0 answers
Cannot find module 'webpack-cli/bin/config-yargs'
So I'm following this react-native tutorial to try and learn how to make apps for Android and iOS: https://www.youtube.com/watch?time_continue=469&v=_CBYbEGvxYY
I started it a while ago and didn't have any issues but I had to get a computer repair…

ShLuBsTeR
- 69
- 2
- 8
1
vote
1 answer
user management with Firebase and React
I was wondering if this is possible using Firebase and React.
I want to create a admin panel where the admins can add new user and assign roles. The moderators should also be able to login and make a new post (the new post part i have figured…

crushen
- 78
- 10
1
vote
1 answer
Error: Network Error with React Native, request .net core web api
(AXIOS GET)
I am requesting .net core web api 2.1 with react native, but the error I get on the console as follows:
Note: Cors was granted permissions by .net core 2.1.
Code:
return axios.get('http://127.0.0.1:50000/api/values', {
credentials:…

Onur İnci
- 118
- 1
- 8
1
vote
0 answers
Babel Transform React.Web allow decorator plugin
I am using the React.Web (for asp.net webforms https://reactjs.net/guides/weboptimizer.html) to transpile my JSX files. I am trying to use Mobx as my store for React. Unfortunately I am getting this error:
React.Exceptions.BabelException: Error:…

yveslebeau
- 104
- 2
- 11
1
vote
0 answers
TypeError: _babelCore.OptionManager is not a function
I installing all node modules for React native. When i going to build iOS project i got error on terminal
~/WebWork/Project/Project/node_modules/react-native/packager ~
/Users/User/WebWork/Project/Project/node_modules/babel-register/lib/node.js:112
…

Tirth
- 7,801
- 9
- 55
- 88
0
votes
1 answer
is it possible to get multiple input from the input field which is created dynamically in react js?
I am creating a webpage with a form, in which I will be creating an input field dynamically based on the values I got from the backend. I had created the input field, but I don't know how to retrieve the data from each field and send them to the…

selva surya
- 31
- 1
- 7
0
votes
1 answer
React Native Error: Invalid hook call. Hooks can only be called inside of the body of a function component
I'm programming with some friends a Chess App and now we get an Error implementing the Chess itself.
we get the error in the first const of the function as well as at the Export of App.jsx
Our GitHub Repo: Chedu
App.jsx
import React, { useEffect,…

Manubown
- 21
- 3
0
votes
1 answer
How to add inline script in react js?
I am converting my HTML site to react and beneath the body tag, I have this script that toggles my mobile nav