Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.0-alpha.4 #45

Merged
merged 8 commits into from
Nov 22, 2021
Merged

7.0-alpha.4 #45

merged 8 commits into from
Nov 22, 2021

Conversation

DeVoresyah
Copy link
Member

7.0-alpha.4

The new alpha version of OsmiCSX just drop, there are new things that can be explored.

Type support for exported connect (#41)

Add type support for connect({}). It will show suggestions when called inside the component/screen.

Text Responsive (#42)

Fix predefined text responsive that is based on screen dimensions. Previously it depends on screen dimensions height, now it changes to screen dimensions width. I also update the calculation of the pre-defined text.

Percentage Size (#43)

Adding percentage size processor to auto-generate size based on % string. Size support for this processor:

  • minWidth
  • width
  • maxWidth
  • minHeight
  • height
  • maxHeight
  • fontSize

Example Input

apply("min-w%50")
apply("w%50")
apply("max-w%50")
apply("min-h%50")
apply("h%50")
apply("max-h%50")

Example Output

{ minWidth: "50%" }
{ width: "50%" }
{ maxWidth: "50%" }
{ minHeight: "50%" }
{ height: "50%" }
{ maxHeight: "50%" }

Notch Processor (#44)

Special thanks to @ptelad who made an awesome and helpful iPhone Notch Helper.

We just added notch syntax support in OsmiCSX.

Example Input

apply('flex m-5 notch:mt-10')

Example Output

Output style on Android:

{
  flex: 1,
  margin: 20
}

Output style on iOS & if has a notch:

{
  flex: 1,
  margin: 20,
  marginTop: 40,
}

@DeVoresyah DeVoresyah added documentation Improvements or additions to documentation enhancement New feature or request core All about core and main algorithm labels Nov 22, 2021
@DeVoresyah DeVoresyah merged commit dc9ca32 into master Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core All about core and main algorithm documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant