Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
Intentando obtener el título en el encabezado, pero no puedo hacerlo

Estoy tratando de obtener el título en el encabezado de mi aplicación nativa de reacción. He estado siguiendo una conferencia en video, pero parece que hasta ahora no puedo hacerlo bien.

 import { StyleSheet, Text, View } from 'react-native' import React from 'react' import { DOC } from '../Data/dummy-data' const Doctors = props => { // destructure const { docId } = props.route.params const selectedCategory = DOC.find(doc => doc.id === docId) return ( <View style={styles.screen}> <Text>{selectedCategory.title}</Text> </View> ) } Doctors.navigationOptions = (navigationData) => { const docId = navigationData.navigation.getParam('docId') const selectedCategory = DOC.find(doc => doc.id === docId) return { headerTitle:selectedCategory.title } } export default Doctors const styles = StyleSheet.create({ screen:{ flex:1, justifyContent:'center', alignItems:'center' } })
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!