Closed vendramini closed 1 year ago
I have found a solution for the textfield component theme management. You must use 'Incubator.TextField' instead of 'TextField'.
import {ThemeManager} from 'react-native-ui-lib';
ThemeManager.setComponentTheme('Incubator.TextField', () => {
return {
fieldStyle: {
borderWidth: 1,
borderColor: 'blue',
borderRadius: 8,
},
labelColor: 'red',
placeholderTextColor: 'purple'
...
}
});
You are right @halenur. Where did you find that? I couldn't find it on docs. Thank you!
The Button also didn't work for me.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
I've created a new expo project to test and learn. I'm doing this simple line of code and it is not working as expected:
However, this is working:
The full file
index.ts
:Am I missing something? The
TextField
was supposed to be red but it isn't.Related to
Environment
Affected platforms