Не понимаю. Чекер говорит, что всё неправильно
import React from 'react';
import { sectionsData } from './data.js'
import { SafeAreaView, StyleSheet, SectionList, Text } from 'react-native';
export default class App extends React.Component {
renderItem = () => {
return null
}
renderSectionHeader = (section) => {
let xxx=section.toUpperCase()
return (<Text style={styles.section}>{xxx}</Text>)
}
render() {
return (<SafeAreaView style={styles.container}>
<SectionList
sections={sectionsData}
keyExtractor={item => item.uid}
renderItem={() => this.renderItem()}
renderSectionHeader={({ section: { menuSection } }) => this.renderSectionHeader(menuSection)}
>
</SectionList>
</SafeAreaView>)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
section:
{
paddingTop: 30,
paddingHorizontal: 10,
fontSize: 30,
color: '#E3771C',
fontWeight: 'bold'
}
});