react-native-screen-util
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

react-native-screen-util

react native responsive ui for design size

Firstly

it is library flutter_screenutil migration for react_native used Library List

  1. flutter_screenutil
  2. react-if React.Memo Add areEqual Algorithms I used shallow Algorithms reason its I think so usage data is simply
  3. qcompare state areEqual Algorithms
  4. fast-equals state areEqual Algorithms
  5. zustand state library and areEqual Algorithms
  6. 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

  1. current Version Work 100% android
  2. currently android Support Minimum 29 :< (reason: screen inset)
  3. running exmaple for android :>
  4. 2022/12/28 ios example is work 100% !!
  5. ios work ios minimum 11 :<
  6. 2023/01/01 rework completely! Ver1 start
  7. 2023/01/05 patchd! ui/ux working size only input please! (status bar, navigation bar or bottom bar? exclude exactly height?)

design file

  1. original png (390 x 844)
    1. Link
  2. original svg (390 x 844)
    1. Link
  3. ios 14
    1. Link
    2. image
  4. android
    1. Link
    2. image
    3. image

Futures

    • [x] make for Margin
    1. this fully typed and return styleCode marginLeft,Top,Bottom...
    • [x] make for Padding
    1. 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)
    1. 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
    1. The usage is exactly the same as react-if.
    2. 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

Package Sidebar

Install

npm i react-native-screen-util

Weekly Downloads

1

Version

1.3.2

License

MIT

Unpacked Size

558 kB

Total Files

462

Last publish

Collaborators

  • buyong