thecodingmachine / react-native-boilerplate

A React Native template for building solid applications 🐙, using JavaScript 💛 or Typescript 💙 (you choose).
https://thecodingmachine.github.io/react-native-boilerplate/
MIT License
4.61k stars 849 forks source link

[NEW FEATURE REQUEST/IDEA]: Media queries #425

Open jinsignares opened 1 month ago

jinsignares commented 1 month ago

Is your feature request related to a problem?

Is there a way to implement media queries with this template? I want to use different styling for an iPad sized device from the default styling for mobile sized devices, is there a way to implement this out of the box with the template?

Describe the solution you'd like

If it does not exist, something similar to how tailwindCSS handles media queries would be nice

Describe alternatives you've considered.

I've considered adding another package to handle this but wanted to know if the template already does this

JeremyDolle commented 1 month ago

Hello, there is no media query specific styling pre-build in the boilerplate. But it's not impossible to make it working using the Platform API and Dimensions API

What kind of style do you want to change depending on the width of the device ?