Bernard Chung

Results comments of Bernard Chung

You can use this in a class component by wrapping your render contents in a 'HeaderHeightContext.Consumer' ``` import {HeaderHeightContext} from '@react-navigation/stack'; render = () => { return ( {(headerHeight: any)...

Is this in a React Native `Class` component or a `Function` component?

I don't see any reason why you would receive an error there. I tried it in my app and it works as expected, no errors. What version of React Navigation...

If I am understanding your question correctly, you could pass the header height from your function/class component to your utility function. ### Class Component ``` import {HeaderHeightContext} from '@react-navigation/stack'; export...

Am I missing something? I tried both settings being on and just parseError on and still I am getting an error. ` // Smart.Default.Settings.FormatErrorAction = ErrorAction.Ignore; Smart.Default.Settings.ParseErrorAction = ErrorAction.Ignore; var...

Sure, Here is the code sample and the error ` var cssString = "{padding: 10px; margin: 1rem} {Website}"; Smart.Default.Settings.FormatErrorAction = ErrorAction.MaintainTokens; Smart.Default.Settings.ParseErrorAction = ErrorAction.MaintainTokens; var emailTemplate = Smart.Format(cssString, values);` The...

Sorry, I did not include the complete code where values was defined. None the less, I thought that by setting the two settings: Smart.Default.Settings.FormatErrorAction = ErrorAction.MaintainTokens; Smart.Default.Settings.ParseErrorAction = ErrorAction.MaintainTokens; That...