Skip to content

Commit b88aeea

Browse files
Merge pull request #15 from SimformSolutionsPvtLtd/develop
Release v1.0.1
2 parents ccd7fc9 + 3e127c9 commit b88aeea

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

README.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,9 @@ Checkout TreeSelect Example [here](./example/src/App.tsx)
112112

113113
```jsx
114114
import React from 'react';
115-
import {
116-
TreeDataTypes,
117-
TreeSelect,
118-
} from 'react-native-tree-selection';
115+
import { TreeDataTypes, TreeSelect } from 'react-native-tree-selection';
119116

120117
const App = () => {
121-
122118
return (
123119
<TreeSelect
124120
data={treeData}
@@ -128,7 +124,6 @@ const App = () => {
128124
onChildPress={onChildPress}
129125
onCheckBoxPress={onCheckBoxPress}
130126
/>
131-
/>
132127
);
133128
};
134129

assets/Tree-Selection.gif

775 KB
Loading

example/src/theme/applicationStyles.ts

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import { moderateScale, verticalScale } from './Metrics';
44
const styles = StyleSheet.create({
55
container: {
66
flex: 1,
7-
margin: moderateScale(20),
8-
marginBottom: verticalScale(10),
9-
alignItems: 'flex-start',
107
},
118
text: {
129
marginTop: verticalScale(50),

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-tree-selection",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A high-performance and lightweight tree selection library for React Native.",
55
"main": "lib/index",
66
"types": "lib/index.d.ts",

src/components/TreeSelection/TreeSelect.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ const TreeSelect = ({
249249
<FlatList
250250
showsVerticalScrollIndicator={false}
251251
{...flatListProps}
252+
contentContainerStyle={styles.containerStyle}
252253
data={listData}
253254
renderItem={renderTree}
254255
keyExtractor={(_item, index) => index.toString()}

src/components/TreeSelection/styles.ts

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ const styles = StyleSheet.create({
66
color: Colors.white,
77
fontSize: moderateScale(18),
88
},
9+
containerStyle: {
10+
margin: moderateScale(20),
11+
marginBottom: verticalScale(10),
12+
alignItems: 'flex-start',
13+
},
914
parentStyles: {
1015
backgroundColor: Colors.parentContainerColor,
1116
marginTop: verticalScale(5),

0 commit comments

Comments
 (0)