I'm pretty sure that I'm missing something basic here, but I can't figure it out. I've been following this tutorial to render a list of elements, but I'm getting a "View Config not Found for name li" error, and for any other HTML element that I attempt to use in render(). Not sure where I'm going wrong here as all other similar questions had solutions that I've already included in my code (like including a return statement), so any advice would be appreciated.
import React, { Component } from 'react';
import ReactList from 'react-list';
import { StyleSheet, Text, View, Navigator, AppRegistry, TextInput,
TouchableOpacity } from 'react-native';
const { createGame, addUserToGame } = require('./requestors');
class Players extends Component {
constructor(props) {
super(props);
this.state = {
players: [{
name: 'Player1',
}, {
name: 'Player2',
}],
};
}
render() {
return (
<ul>
{this.state.players.map(player => <li>{player.name}</li>)}
</ul>
);
}
}
module.exports = Players;