Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-table-component

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.2.0 to 1.2.1

4

components/cell.js

@@ -20,3 +20,3 @@ import React, { Component } from 'react';

);
const borderTopWidth = (borderStyle && borderStyle.borderWidth) || 1;
const borderTopWidth = (borderStyle && borderStyle.borderWidth) || 0;
const borderRightWidth = borderTopWidth;

@@ -50,2 +50,2 @@ const borderColor = (borderStyle && borderStyle.borderColor) || '#000';

text: { backgroundColor: 'transparent' }
});
});

@@ -66,2 +66,2 @@ import React, { Component } from 'react';

}
});
});

@@ -21,3 +21,3 @@ import React, { Component } from 'react';

const { borderStyle } = this.props;
const borderLeftWidth = (borderStyle && borderStyle.borderWidth) || 1;
const borderLeftWidth = (borderStyle && borderStyle.borderWidth) || 0;
const borderBottomWidth = borderLeftWidth;

@@ -24,0 +24,0 @@ const borderColor = (borderStyle && borderStyle.borderColor) || '#000';

{
"name": "react-native-table-component",
"version": "1.2.0",
"version": "1.2.1",
"description": "Build table for react native.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -42,2 +42,4 @@ <p align="center">

- data属性内可以插入自定义组件
+ [v1.2.1]
- borderWidth默认值从1改为0
<br/><br/>

@@ -118,3 +120,3 @@

<View style={styles.container}>
<Table>
<Table borderStyle={{borderWidth: 1}}>
<Row data={state.tableHead} flexArr={[1, 2, 1, 1]} style={styles.head} textStyle={styles.text}/>

@@ -175,7 +177,7 @@ <TableWrapper style={styles.wrapper}>

<View>
<Table borderStyle={{borderColor: '#C1C0B9'}}>
<Table borderStyle={{borderWidth: 1, borderColor: '#C1C0B9'}}>
<Row data={state.tableHead} widthArr={state.widthArr} style={styles.header} textStyle={styles.text}/>
</Table>
<ScrollView style={styles.dataWrapper}>
<Table borderStyle={{borderColor: '#C1C0B9'}}>
<Table borderStyle={{borderWidth: 1, borderColor: '#C1C0B9'}}>
{

@@ -318,3 +320,3 @@ tableData.map((rowData, index) => (

<View style={styles.container}>
<Table style={{flexDirection: 'row'}}>
<Table style={{flexDirection: 'row'}} borderStyle={{borderWidth: 1}}>
{/* 左边模块 */}

@@ -362,3 +364,3 @@ <TableWrapper style={{width: 80}}>

| <b>style</b> | Style | 组件style样式 | `null` |
| <b>borderStyle</b>| Object| 表格边框样式 | `{ borderWidth: 1, borderColor: #000 }` |
| <b>borderStyle</b>| Object| 表格边框样式 | `{ borderWidth: 0, borderColor: #000 }` |
| <b>textStyle</b> | Style | 子项文字样式 | `null` |

@@ -365,0 +367,0 @@ | <b>flexArr</b> | Array | 每列的flex值 | `[]` |

@@ -42,2 +42,4 @@ <p align="center">

- Data supports incoming Element types
+ [v1.2.1]
- Change the default value of the borderWidth from 1 to 0
<br/><br/>

@@ -118,3 +120,3 @@

<View style={styles.container}>
<Table>
<Table borderStyle={{borderWidth: 1}}>
<Row data={state.tableHead} flexArr={[1, 2, 1, 1]} style={styles.head} textStyle={styles.text}/>

@@ -175,7 +177,7 @@ <TableWrapper style={styles.wrapper}>

<View>
<Table borderStyle={{borderColor: '#C1C0B9'}}>
<Table borderStyle={{borderWidth: 1, borderColor: '#C1C0B9'}}>
<Row data={state.tableHead} widthArr={state.widthArr} style={styles.header} textStyle={styles.text}/>
</Table>
<ScrollView style={styles.dataWrapper}>
<Table borderStyle={{borderColor: '#C1C0B9'}}>
<Table borderStyle={{borderWidth: 1, borderColor: '#C1C0B9'}}>
{

@@ -318,3 +320,3 @@ tableData.map((rowData, index) => (

<View style={styles.container}>
<Table style={{flexDirection: 'row'}}>
<Table style={{flexDirection: 'row'}} borderStyle={{borderWidth: 1}}>
{/* Left Wrapper */}

@@ -362,3 +364,3 @@ <TableWrapper style={{width: 80}}>

| <b>style</b> | Style | Container style. | `null` |
| <b>borderStyle</b>| Object| Table border line width and color. | `{ borderWidth: 1, borderColor: #000 }` |
| <b>borderStyle</b>| Object| Table border line width and color. | `{ borderWidth: 0, borderColor: #000 }` |
| <b>textStyle</b> | Style | Cell font style. | `null` |

@@ -365,0 +367,0 @@ | <b>flexArr</b> | Array | Flex value per column. | `[]` |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc