Skip to content
Advertisement

LinearGradient and onPress for navigation

so I am new to react native and know the basics about using onPress with buttons but since I have changed my button to this LinearGradient code below, I am kind of lost using onPress. Right now I only have onPress outputting to my terminal just to test and make sure its working.

In the end I want to navigate to another page which I am assuming I will use some navigation API for that. Anywho, I apologize for the ignorance and I really appreciate your time! Thank you!!

The place I put my onPress code now was teh only place I could think to put it.

Well now realizing LinearGradient does not work with onPress…How should I go about navigating that linearGradient to another page?

JavaScript

Advertisement

Answer

About that ?

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement