Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
diff.map((record, idx) => {
return (React.createElement(react_native_1.View, { key: record.id },
React.createElement(react_native_1.View, { style: row_c },
React.createElement(react_native_1.View, { style: { flex: .5, justifyContent: "center" } }, idx <= 2 ? (React.createElement(FontAwesome_1.default, { style: { marginLeft: -5 }, name: "trophy", size: 20, color: winners[idx] })) : (React.createElement(react_native_1.Text, { style: { fontSize: 16, fontFamily: "riffic" } }, idx + 1))),
React.createElement(react_native_1.View, { style: { flex: 1, marginLeft: 5 } },
React.createElement(react_native_1.Text, { style: [grid_s, { backgroundColor: record.gridSize > 8 ? gridColors["6x6"] : gridColors["4x4"] }] }, record.gridSize > 8 ? "6x6" : "4x4")),
React.createElement(react_native_1.View, { style: { flex: 4, justifyContent: "center" } },
React.createElement(react_native_1.Text, { style: name_s }, record.name.trim())),
React.createElement(react_native_1.View, { style: { flex: 1, justifyContent: "center" } },
React.createElement(react_native_1.Text, { style: [score_s] }, record.score))),
diff.length - 1 === idx ? null : (React.createElement(react_native_1.View, { style: separator }))));
})));
}) : (React.createElement(NoScores_1.NoScores, null,
import React from 'react';
import { View, Text, TouchableHighlight, TouchableOpacity } from 'react-native';
const IconMap = {
fontAwesome: require('react-native-vector-icons/FontAwesome').default,
feather: require('react-native-vector-icons/Feather').default,
antDesign: require('react-native-vector-icons/AntDesign').default,
entypo: require('react-native-vector-icons/Entypo').default,
evilIcons: require('react-native-vector-icons/EvilIcons').default,
foundation: require('react-native-vector-icons/Foundation').default,
ionicons: require('react-native-vector-icons/Ionicons').default,
materialCommunityIcons: require('react-native-vector-icons/MaterialCommunityIcons').default,
materialIcons: require('react-native-vector-icons/MaterialIcons').default,
octicons: require('react-native-vector-icons/Octicons').default,
simpleLineIcons: require('react-native-vector-icons/SimpleLineIcons').default,
zocial: require('react-native-vector-icons/Zocial').default,
};
export default class IconComponent extends React.PureComponent {
constructor(props) {
super(props);