Skip to main content

All Questions

Tagged with
232 votes
15 answers
532k views

How to center a component in Material UI and make it responsive?

I don't quite understand the Material UI grid system. If I want to use a form component for login, what is the easiest way to center it on the screen on all devices (mobile and desktop)?
zorro's user avatar
  • 2,555
89 votes
9 answers
25k views

When should I add Redux to a React app?

I'm currently learning React and I am trying to figure out how to use it with Redux for building a mobile app. I'm kind of confused on how the two are related/usable together. For example, I completed ...
user3802348's user avatar
  • 2,602
74 votes
7 answers
61k views

How to detect when a React Native app is closed (not suspended)?

I have looked everywhere and cannot find an answer to this. How can I detect when a user is trying to close my React Native app (as in the process is running, and they manually manage their apps and ...
Dale_Plante's user avatar
53 votes
2 answers
15k views

Can a React-Redux app really scale as well as, say Backbone? Even with reselect. On mobile

In Redux, every change to the store triggers a notify on all connected components. This makes things very simple for the developer, but what if you have an application with N connected components, and ...
Garrett's user avatar
  • 11.7k
38 votes
10 answers
78k views

How to create two columns with space beetwen in react native - flatList

Hi i'm new in React Native. I am trying to create two columns layout with space beetween using react native component called flatList. Here is my view Code: <View style={styles.container}> ...
user1559599's user avatar
26 votes
6 answers
26k views

Can touch out side a View Component be detected in react native?

My React native application screen has View component with few text inputs. How can touch be detected on screen outside that View? Please help. Thanks
user3300203's user avatar
  • 1,055
22 votes
7 answers
39k views

How do I recognize swipe events in React?

I'm currently developing a React app and I want to detect swipe events (left, right) on a div element (on mobile devices). How do I achieve this without any additional libraries?
gru's user avatar
  • 3,129
19 votes
3 answers
25k views

Hide mobile browser's address bar on load (IOS / Android) in React

Safari and Chrome on mobile devices both include a visible address bar when a page loads. As the body of the page scrolls, the URL bar minimises: My project is based on React JS and I am trying to ...
Dino Pizza's user avatar
15 votes
5 answers
29k views

Material UI - Responsive Drawer

Does anyone know how to, or know of any examples of how to create a reactive Appbar and Drawer? It needs to be able to dynamically un-dock the drawer and hide when the browser is small and dock the ...
Timmo's user avatar
  • 2,354
15 votes
1 answer
42k views

React js Material-UI responsive table

I am building a web application in react js and I'm using the material-ui components library. I'm using the table component and it looks good on desktop but I want it to adjust and look good also on ...
BD111's user avatar
  • 201
14 votes
5 answers
125k views

react-native android error Failed to install the app native_modules.gradle' line: 170 [duplicate]

running react-native run-android in windows but get this error: error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-...
milad shafiei's user avatar
13 votes
2 answers
21k views

react-native: borderRadius does not frame component right

The borderRadius style attribute doesn't change the border of a component correctly. I would expect to see a green circle on the red background without any white space. Instead, I see this. class ...
Mike Borozdin's user avatar
13 votes
4 answers
8k views

Sticky HTML element gets hidden below the Mobile navigation bar in chrome / Firefox mobile browser. How to fix this? [ UPDATED ]

REQUIREMENT : I have an action bar with button called Next Scale, which is of position: sticky and bottom: 0 in mobile view. I want this HTML element to stick to the bottom of the viewport as we ...
Neyo's user avatar
  • 644
12 votes
5 answers
31k views

How do I get my React TextField to open the number pad when inputting on a mobile device?

I have a React TextField that is taking user input and it is representing a date. When the user clicks on the field I want the number keyboard to open instead of the full alphabet. I was looking at ...
intA's user avatar
  • 2,731
11 votes
5 answers
8k views

React: onClick on Mobile (iPhone) requires 2 taps?

Video demonstrating issue I have a bunch of clickable components that, when clicked, adds a "card" to a row. On desktop, it works fine, but on mobile (tested on iPhone, does not seem to be an issue ...
damon's user avatar
  • 2,917

15 30 50 per page
1
2 3 4 5
42