I
I
Ivan2021-02-15 12:11:12
React Native
Ivan, 2021-02-15 12:11:12

How is an adaptive created in react-native?

The web uses media queries, rn seems to be able to use them too, but I think there is another option that is used more often. How can I enlarge the tablet interface?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Bannikov, 2021-02-15
@BenderIsGreat34

For screen resolution: https://reactnative.dev/docs/dimensions
For responsive: https://www.npmjs.com/package/react-native-respons...
And google: adaptive in react native
With CSS in rn seems to be not so simple, maybe it's not html

D
Denioo, 2021-02-15
@Denioo

https://github.com/contra/react-responsive
Here is a bible for catching screen resolution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question