lizhuoyuan / reactnativescreenutil Goto Github PK
View Code? Open in Web Editor NEWReactNative屏幕工具适配类
ReactNative屏幕工具适配类
高度在安卓上有误差
按照文字适配方案,效果会比设计图偏大~
export const scaleSize = (size: Number) => {
let scaleWidth = screenW / w2
let scaleHeight = screenH / h2
let scale = Math.min(scaleWidth, scaleHeight)
size = Math.round((size * scale + 0.5))
return size / DEFAULT_DENSITY
}
如题,没带单位是做了适配还是隐藏了哪个单位呢?求解答
如果用户设置系统文字大小为大 字体会变化 导致布局有问题,请问有办法解决这个问题吗? AlowFontScale为fales没效果
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.