1

I am just new to React-Native and I want to build a school app for my school project.

And one of the features in the app should be dark/light mode. I have seen a few videos about the topic, but none of them meet my requirements.

It should be a nice button that doesn't switch directly, but, the switch should go nicely to the right or left. (Like on the iPhone)

This button is first for whether it chooses mode set by the system or if the user wants to set extra for the app.

If the button is not switched on, it remains with the system set mode, but if the button is switched on, a 2nd button comes, where it is then asked which mode the user wants.

I am new to the site, so I don't know if the information is enough for you, but I would add more stuff if asked.

1
  • Please provide enough code so others can better understand or reproduce the problem. Commented Oct 6, 2021 at 11:31

1 Answer 1

1

For DarkMode you can use https://reactnative.dev/docs/appearance . React-Native also provides https://reactnative.dev/docs/switch . With this you an create such a case.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.