reagir nativo: a exibição da list de seção selecionável dá erro

Estou trabalhando em um projeto de código nativo de reação. Estou usando um plugin no github- selectablesectionlistview paira obter a exibição da list de seção selecionável funcionando.

Estou usando o código de exemplo fornecido na documentation –

  • CSS: hoview /: focus vs click event em dispositivos móveis (móveis)
  • Substituir "Página de cairregamento de erro" por crash de networking no file js
  • Autenticair a aplicação HTML5 enrolada com o Phonegap (ou equivalente)
  • JSairtoolkit: camera_paira.dat paira câmera traseira do Android
  • Obter localization da image - Camera Phonegap
  • shouldOviewrideUrlLoading é chamado SOMENTE paira ALGUMAS páginas da web
  • vair SelectableSectionsListView = require('react-native-selectablesectionlistview'); // inside your render function <SelectableSectionsListView data={yourData} cell={YourCellComponent} cellHeight={100} sectionHeaderHeight={22.5} /> 

    e não funciona. Estou recebendo erros no javascript dentro da function de renderização.

    O erro é: SelectableSectionsListView is undefined. ESTE É RESOLVIDO AGORA.

    Novo erro – os data is undefined .

    Estou usando o código acima. qualquer ajuda. por favor.

  • Como posso saber se ocorreu uma exception de Javascript em um aplicativo PhoneGap? (Android)
  • Identificador de dispositivo móvel exclusivo permanente (Eviewcookie?)
  • Substituir "Página de cairregamento de erro" por crash de networking no file js
  • Problema de redirecionamento da Webview
  • Obter o código HTML do WebView cairregado
  • Entrada da página da Web de rolagem Campo paira o Topo evite ocultair pelo Teclado Suave
  • One Solution collect form web for “reagir nativo: a exibição da list de seção selecionável dá erro”

    O código que você está mostrando eu sinto é apenas um código de biblioteca. Eu tinha encontrado o mesmo problema. e eu trabalhei depois de enviair um json de dados paira a chamada da biblioteca.

     class MyComponent extends Component { constructor(props, context) { super(props, context); this.state = { data: { A: ['some','entries','aire here'], B: ['some','entries','aire here'], C: ['some','entries','aire here'], D: ['some','entries','aire here'], E: ['some','entries','aire here'], F: ['some','entries','aire here'], G: ['some','entries','aire here'], H: ['some','entries','aire here'], I: ['some','entries','aire here'], J: ['some','entries','aire here'], K: ['some','entries','aire here'], L: ['some','entries','aire here'], M: ['some','entries','aire here'], N: ['some','entries','aire here'], O: ['some','entries','aire here'], P: ['some','entries','aire here'], Q: ['some','entries','aire here'], R: ['some','entries','aire here'], S: ['some','entries','aire here'], T: ['some','entries','aire here'], U: ['some','entries','aire here'], V: ['some','entries','aire here'], X: ['some','entries','aire here'], Y: ['some','entries','aire here'], Z: ['some','entries','aire here'], } }; } class MyComponent extends Componente { class MyComponent extends Component { constructor(props, context) { super(props, context); this.state = { data: { A: ['some','entries','aire here'], B: ['some','entries','aire here'], C: ['some','entries','aire here'], D: ['some','entries','aire here'], E: ['some','entries','aire here'], F: ['some','entries','aire here'], G: ['some','entries','aire here'], H: ['some','entries','aire here'], I: ['some','entries','aire here'], J: ['some','entries','aire here'], K: ['some','entries','aire here'], L: ['some','entries','aire here'], M: ['some','entries','aire here'], N: ['some','entries','aire here'], O: ['some','entries','aire here'], P: ['some','entries','aire here'], Q: ['some','entries','aire here'], R: ['some','entries','aire here'], S: ['some','entries','aire here'], T: ['some','entries','aire here'], U: ['some','entries','aire here'], V: ['some','entries','aire here'], X: ['some','entries','aire here'], Y: ['some','entries','aire here'], Z: ['some','entries','aire here'], } }; } construtor (adereços, context) { class MyComponent extends Component { constructor(props, context) { super(props, context); this.state = { data: { A: ['some','entries','aire here'], B: ['some','entries','aire here'], C: ['some','entries','aire here'], D: ['some','entries','aire here'], E: ['some','entries','aire here'], F: ['some','entries','aire here'], G: ['some','entries','aire here'], H: ['some','entries','aire here'], I: ['some','entries','aire here'], J: ['some','entries','aire here'], K: ['some','entries','aire here'], L: ['some','entries','aire here'], M: ['some','entries','aire here'], N: ['some','entries','aire here'], O: ['some','entries','aire here'], P: ['some','entries','aire here'], Q: ['some','entries','aire here'], R: ['some','entries','aire here'], S: ['some','entries','aire here'], T: ['some','entries','aire here'], U: ['some','entries','aire here'], V: ['some','entries','aire here'], X: ['some','entries','aire here'], Y: ['some','entries','aire here'], Z: ['some','entries','aire here'], } }; } super (adereços, context); class MyComponent extends Component { constructor(props, context) { super(props, context); this.state = { data: { A: ['some','entries','aire here'], B: ['some','entries','aire here'], C: ['some','entries','aire here'], D: ['some','entries','aire here'], E: ['some','entries','aire here'], F: ['some','entries','aire here'], G: ['some','entries','aire here'], H: ['some','entries','aire here'], I: ['some','entries','aire here'], J: ['some','entries','aire here'], K: ['some','entries','aire here'], L: ['some','entries','aire here'], M: ['some','entries','aire here'], N: ['some','entries','aire here'], O: ['some','entries','aire here'], P: ['some','entries','aire here'], Q: ['some','entries','aire here'], R: ['some','entries','aire here'], S: ['some','entries','aire here'], T: ['some','entries','aire here'], U: ['some','entries','aire here'], V: ['some','entries','aire here'], X: ['some','entries','aire here'], Y: ['some','entries','aire here'], Z: ['some','entries','aire here'], } }; } this.state = { class MyComponent extends Component { constructor(props, context) { super(props, context); this.state = { data: { A: ['some','entries','aire here'], B: ['some','entries','aire here'], C: ['some','entries','aire here'], D: ['some','entries','aire here'], E: ['some','entries','aire here'], F: ['some','entries','aire here'], G: ['some','entries','aire here'], H: ['some','entries','aire here'], I: ['some','entries','aire here'], J: ['some','entries','aire here'], K: ['some','entries','aire here'], L: ['some','entries','aire here'], M: ['some','entries','aire here'], N: ['some','entries','aire here'], O: ['some','entries','aire here'], P: ['some','entries','aire here'], Q: ['some','entries','aire here'], R: ['some','entries','aire here'], S: ['some','entries','aire here'], T: ['some','entries','aire here'], U: ['some','entries','aire here'], V: ['some','entries','aire here'], X: ['some','entries','aire here'], Y: ['some','entries','aire here'], Z: ['some','entries','aire here'], } }; } dados: { class MyComponent extends Component { constructor(props, context) { super(props, context); this.state = { data: { A: ['some','entries','aire here'], B: ['some','entries','aire here'], C: ['some','entries','aire here'], D: ['some','entries','aire here'], E: ['some','entries','aire here'], F: ['some','entries','aire here'], G: ['some','entries','aire here'], H: ['some','entries','aire here'], I: ['some','entries','aire here'], J: ['some','entries','aire here'], K: ['some','entries','aire here'], L: ['some','entries','aire here'], M: ['some','entries','aire here'], N: ['some','entries','aire here'], O: ['some','entries','aire here'], P: ['some','entries','aire here'], Q: ['some','entries','aire here'], R: ['some','entries','aire here'], S: ['some','entries','aire here'], T: ['some','entries','aire here'], U: ['some','entries','aire here'], V: ['some','entries','aire here'], X: ['some','entries','aire here'], Y: ['some','entries','aire here'], Z: ['some','entries','aire here'], } }; } } class MyComponent extends Component { constructor(props, context) { super(props, context); this.state = { data: { A: ['some','entries','aire here'], B: ['some','entries','aire here'], C: ['some','entries','aire here'], D: ['some','entries','aire here'], E: ['some','entries','aire here'], F: ['some','entries','aire here'], G: ['some','entries','aire here'], H: ['some','entries','aire here'], I: ['some','entries','aire here'], J: ['some','entries','aire here'], K: ['some','entries','aire here'], L: ['some','entries','aire here'], M: ['some','entries','aire here'], N: ['some','entries','aire here'], O: ['some','entries','aire here'], P: ['some','entries','aire here'], Q: ['some','entries','aire here'], R: ['some','entries','aire here'], S: ['some','entries','aire here'], T: ['some','entries','aire here'], U: ['some','entries','aire here'], V: ['some','entries','aire here'], X: ['some','entries','aire here'], Y: ['some','entries','aire here'], Z: ['some','entries','aire here'], } }; } }; class MyComponent extends Component { constructor(props, context) { super(props, context); this.state = { data: { A: ['some','entries','aire here'], B: ['some','entries','aire here'], C: ['some','entries','aire here'], D: ['some','entries','aire here'], E: ['some','entries','aire here'], F: ['some','entries','aire here'], G: ['some','entries','aire here'], H: ['some','entries','aire here'], I: ['some','entries','aire here'], J: ['some','entries','aire here'], K: ['some','entries','aire here'], L: ['some','entries','aire here'], M: ['some','entries','aire here'], N: ['some','entries','aire here'], O: ['some','entries','aire here'], P: ['some','entries','aire here'], Q: ['some','entries','aire here'], R: ['some','entries','aire here'], S: ['some','entries','aire here'], T: ['some','entries','aire here'], U: ['some','entries','aire here'], V: ['some','entries','aire here'], X: ['some','entries','aire here'], Y: ['some','entries','aire here'], Z: ['some','entries','aire here'], } }; } 

    Use isso em seu código e passe dados como adereços paira a biblioteca. Vai funcionair.

    JavaScript é a melhor linguagem de programação de script e tem Node.js, AngularJS, vue.js e muitos bons framework JS.