react-native-screen-util
react native responsive ui for design size
Firstly
it is library flutter_screenutil migration for react_native used Library List
- flutter_screenutil
- react-if React.Memo Add areEqual Algorithms I used shallow Algorithms reason its I think so usage data is simply
- qcompare state areEqual Algorithms
- fast-equals state areEqual Algorithms
- zustand state library and areEqual Algorithms
- react-if nice utility component!!!!!! Thx!! (add memo zustand shallow areEqual)
Installation
npm install react-native-screen-util
yarn add react-native-screen-util
Comment
- current Version Work 100% android
- currently android Support Minimum 29 :< (reason: screen inset)
- running exmaple for android :>
- 2022/12/28 ios example is work 100% !!
- ios work ios minimum 11 :<
- 2023/01/01 rework completely! Ver1 start
- 2023/01/05 patchd! ui/ux working size only input please! (status bar, navigation bar or bottom bar? exclude exactly height?)
design file
Futures
-
- [x] make for Margin
- this fully typed and return styleCode marginLeft,Top,Bottom...
-
- [x] make for Padding
- 1-1 is same
-
- [X] Checking IOS
-
- [X] Android Inset Checking Currently unsafe(program is not deadlock but result is 0)
-
- [X] how to use Border? - used mixin value * ((scaledWidth + scaledHeight) /2)
- just usage ResponsiveStyleSheet.create !!!!! ur StytleSheet.create
-
- [X] npm, yarn upload Probably 23/1/1 ?
-
- [x] context Add (It's hard work, but it's almost over)
-
- [x] Add context for multiple areEquals Algorithms
-
- [x] Add React-If Add for loading option and customize React.memo
- The usage is exactly the same as react-if.
- memolized react-if Component Usage just add feature React.memo and shallow areEqual Algorithms
-
- [x] add styleSheet.create Style Function class
- Now just write down the numbers!
- The specified content is applied automatically.
- Style contents automatically become "object.freeze" state!
-
- [x] ResponsiveStore(zustand) areEqual Algorithms Context Add
- object.is
- shallow
- fasteEquals(shallow)
- fasteEquals(deep)
- qcompare
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library