How can I have the title of a react-native-elements' button split into multiple lines?
import { Button } from 'react-native-elements';
....
// The \n in the following statement does NOT work!
<Button
title="Creating a Shift \n(and inviting employees)"
onPress={ () => {
console.log("Button Pressed");
}}
/>
You need to enclose the title's text in curly braces.
<Button
title={"Creating a Shift \n(and inviting employees)"}
onPress={ () => {
console.log("Button Pressed");
}}
/>