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

Styles #18

Closed
nolife08021 opened this issue Dec 19, 2019 · 7 comments
Closed

Styles #18

nolife08021 opened this issue Dec 19, 2019 · 7 comments
Labels
enhancement New feature or request
Projects

Comments

@nolife08021
Copy link

How to change the font size?

<MathView
      color='white'
      style={{ fontSize:20}}
      math={'x=\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}'}
/>
@ShaMan123 ShaMan123 added the enhancement New feature or request label Dec 19, 2019
@ShaMan123
Copy link
Owner

ShaMan123 commented Dec 19, 2019

From the top of my mind, try passing prop:

config={{ex: n}}

Take a look here: config

@nolife08021
Copy link
Author

Still can't

<MathView
     config={{ex: 50, em:50}}
     math={'x=\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}'}
 />

@ShaMan123
Copy link
Owner

android or iOS or both?

@nolife08021
Copy link
Author

nolife08021 commented Dec 19, 2019

IOS

Android I haven't test yet.

@ShaMan123
Copy link
Owner

OK. found it. About to bump version with the fix.
You will probably have to pass

resizeMode="cover"

@ShaMan123
Copy link
Owner

reinstall and check if it works.

@nolife08021
Copy link
Author

It works! Thanks @ShaMan123

upgrade automation moved this from Low priority to Closed Dec 19, 2019
@ShaMan123 ShaMan123 moved this from Closed to Low priority in upgrade Dec 19, 2019
@ShaMan123 ShaMan123 moved this from Low priority to Closed in upgrade Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
upgrade
  
Closed
Development

No branches or pull requests

2 participants