Closed bj97301 closed 6 months ago
If you were wondering if it had anything to do with tailwind, I tried this as well:
<SuccessToast
text1Props={{allowFontScaling: false}}
text2Props={{allowFontScaling: false}}
text1Style={{
color: '#0f0',
}}
text2Style={{
color: 'red',
}}
style={{
borderLeftColor: '#22c55e',
backgroundColor: '#111827',
marginTop: 2,
color: '#00f',
}}
contentContainerStyle={{paddingHorizontal: 15}}
{...props}
text2NumberOfLines={0}></SuccessToast>
),
cant get the text color to change only the background color.
Doing some debugging, seems like text1Style
in BaseToast.js
is null when i pass it in as a prop. Let me see if i can open a pr to fix that.
well... ive narrowed it down to this, the props passed into the toast config contains a text1Style of null that is overwriteing my text1Style. It seems as though I was including the props override after setting my own text1Style. I moved it to the top and alls good now.
Describe the bug I use a dark background on my toast messages and need the text to be white but it doesn't seem to be applying correctly after i updated my packages. I updated from node 16 to node 20. Not a whole lot else changed when the text colors started not updating besides the node version. Later i tried to update the toast version all the way up to the beta from this version: ^2.1.6. Every version has the same issue even before any updates to the toast package version(^2.1.6). I have now updated to expo 50 from 49 but still no luck. Has anyone else experienced this?
Steps to reproduce Steps to reproduce the behavior:
Expected behavior Text color should be white not dark.
Screenshots before: after:
Code sample
Note that this issue still occurs with plane CSS. I remove the tailwind className and put it as the style but still same issue.
Environment (please complete the following information):
Additional context Seemed to happen after updating my node and basically nothing else though I did update expo while i was at it so now i am on 50 not 49.