Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- renderItem={({item}) => {txttanyidea} }
- renderItem={({item})=><Text>{item}</Text>}
- import React, { Component } from 'react';
- import { AppRegistry, SectionList, Text, View } from 'react-native';
- const txttanyidea = '<text>{item}</text>';
- export default class SectionListBasics extends Component {
- render() {
- return (
- <View>
- <SectionList
- sections={[
- {data: ['Devin']},
- {data: ['JacKson', 'Jimmy', 'Joel', 'John', 'JUlie']}, ]}
- renderItem={({item})=><Text>{item}</Text>}
- // renderItem={({item}) => {txttanyidea} }
- />
- </View>
- );
- }
- }
- // skip this line if using Create React Native App
- AppRegistry.registerComponent('AwesomeProject', () => SectionListBasics);
Add Comment
Please, Sign In to add comment