Posts by Caio cezar • 11 points
2 posts
-
1
votes2
answers13140
viewsA: React Native - Pass data to another component
use the function: getParam(nameParameter, defaultValue). thus:this.props.navigation.getParam(paramName, defaultValue). because if you use directly : "const { name, email } =…
-
0
votes5
answers1540
viewsA: Regex with Javascript - Taking only part of the string
const regex = /[a-z]\\/([\w.]+)/g; const rege = (text) => { let user = regex.exec(text); return hue[1]; } console.log( rege("http://www.google.com/joao.pedro?a=b") )