Guide to use checkbox with terms and conditions

Hi I want to use checkbox in my app I have added a terms and conditions panel on first.If the user accepts it he will be going to the next screen else he will be prompted for ticking the checkbox and once the user accepts it he/she when opens the app again will be redirect to the main screen instead of the tc one.
Can someone guide me?

This video is helpful to you bro

Thank You