Guest User

Untitled

a guest
Dec 13th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. renderItem={({item}) => {txttanyidea} }
  2.  
  3. renderItem={({item})=><Text>{item}</Text>}
  4.  
  5. import React, { Component } from 'react';
  6. import { AppRegistry, SectionList, Text, View } from 'react-native';
  7.  
  8. const txttanyidea = '<text>{item}</text>';
  9.  
  10. export default class SectionListBasics extends Component {
  11. render() {
  12. return (
  13. <View>
  14. <SectionList
  15. sections={[
  16. {data: ['Devin']},
  17. {data: ['JacKson', 'Jimmy', 'Joel', 'John', 'JUlie']}, ]}
  18. renderItem={({item})=><Text>{item}</Text>}
  19. // renderItem={({item}) => {txttanyidea} }
  20. />
  21. </View>
  22. );
  23. }
  24. }
  25.  
  26.  
  27. // skip this line if using Create React Native App
  28. AppRegistry.registerComponent('AwesomeProject', () => SectionListBasics);
Add Comment
Please, Sign In to add comment