You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

react-native-table-component-pro

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-table-component-pro - npm Package Compare versions

Comparing version

to
1.0.1

README.md

16

components/cell.js
import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';

@@ -24,3 +25,2 @@ class Cell extends Component {

}
console.log(style)
return (

@@ -40,3 +40,13 @@ <View style={[

]}>
<Text style={[textStyle, styles.text]}>{data}</Text>
{typeof data === "string" && <Text style={[textStyle, styles.text]}>{data}</Text>}
{typeof data === "object" &&
<TouchableOpacity
onPress={()=>{
data.onPress()
}}
>
{data.hasOwnProperty("text") && <Text style={[textStyle, styles.text]}>{data.text}</Text>}
{data.hasOwnProperty("icon") && <Text style={[textStyle, styles.text]}><Icon name={data.icon} color={data.iconColor} size={data.iconSize}/></Text>}
</TouchableOpacity>
}
</View>

@@ -43,0 +53,0 @@ )

5

package.json
{
"name": "react-native-table-component-pro",
"version": "1.0.0",
"version": "1.0.1",
"description": "Table component for react native",

@@ -13,2 +13,5 @@ "main": "index.js",

},
"dependencies": {
"react-native-vector-icons": "^3.0.0"
},
"keywords": [

@@ -15,0 +18,0 @@ "react",