I am relatively new to React Native, although I have experience with React in my professional work. I'm finding that applying styles to components in React Native is a bit different than what I'm used to.
Specifically, I am struggling to apply styles to a button component.
Below is the code snippet I am currently working with:
<Button
title="LET'S GET STARTED"
onPress={() => {
console.log('You tapped the Decrypt button!');
}}
buttonStyle={{
backgroundColor: "#0A6ABB",
width: 300,
height: 45,
borderColor: "#FFFFFF",
borderWidth: 2,
borderRadius: 5
}}
containerStyle={{ marginTop: 50 }}
/>
Despite trying various methods, I can't seem to get the styles to apply to my button as intended.
Here is a screenshot showing how it currently appears: https://i.stack.imgur.com/MEhpI.png
The text on the "Let's get started" button remains default blue, regardless of my styling attempts. Can someone please advise me on how to resolve this issue? Your help would be greatly appreciated.