Start Building Your App
This App guides you throughout building your app, providing the steps and procedure to customize.
Contents discussed in this section:
- How to add new Component?
- How to add new Stylesheet?
How to add new Component
- Create a new file, say NewComponent and place it under /src/screens/.
- Name the class same as that of file name.
class NewComponent extends Component {
. . .
. . .
}
How to add new Stylesheet
- Go to the bottom of file and locate styles declaration.
- Add a new key with any desired name
- Add styles.keyname in the styles prop of the component
class NewComponent extends Component {
. . .
const styles = Stylesheet.create({
...
newKey: {
...styling
}
})
}