Skip to content

Part 3: Final Touches

Abel Lu edited this page Sep 23, 2024 · 2 revisions

Finishing Up

Note

Before starting this section, install the latest version of react-native-svg by running the following line in your terminal:

npm install react-native-svg@latest

Your task for this part is to add functionality to the Simple Counter to support additional behaviors:

  • When trying to decrement below 0, an error message should appear
  • When trying to decrement above 20, an error message should appear
  • If performing a valid action, any error message on the screen should disappear

Additionally, try to make the UI look as close as possible to the example below, including the border around the screen area.

Here are some links that may be helpful:

Have fun!

drawing drawing drawing

Clone this wiki locally