react-native-math-view
react-native-math-view copied to clipboard
font size config not working for MathText
config props works for MathView but not working for MathText
<MathText
value={props.math}
config={{ ex: 50, em: 50 }}
onError={e => console.log('ERROR!', e)}
direction="ltr"
/>
This doesn't show big font.

And where can I see all the props?
You are right.
config isn't passed down:
https://github.com/ShaMan123/react-native-math-view/blob/master/src/MathText.tsx#L45
You are welcome to PR.
You can instead handle this with the CellRenderComponent.
<MathText
CellRenderComponent={props => <MathView {...props} config={{...props.config, em: 50}}
/>
The above solution still doesn't work can you please explain a bit?
Thanks
Sorry, I don't have a lot of time left to maintain the repo.
You are welcome to PR:
Pass a config prop and merge it with inline prop
This should work
https://github.com/ShaMan123/react-native-math-view/blob/master/src/MathText.tsx#L45
Can you explain what you mean by merging it with inline prop? Have you applied this already into the package?
Don't remember Sorry Follow the code It should be a react fix, passing props
I just used mathview instead
https://github.com/ShaMan123/react-native-math-view/pull/96
This PR should fix this issue.