Skip to content

Commit

Permalink
Merge pull request #15 from SimformSolutionsPvtLtd/develop
Browse files Browse the repository at this point in the history
Release v1.0.1
  • Loading branch information
mukesh-simform authored Jul 17, 2023
2 parents ccd7fc9 + 3e127c9 commit b88aeea
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,9 @@ Checkout TreeSelect Example [here](./example/src/App.tsx)

```jsx
import React from 'react';
import {
TreeDataTypes,
TreeSelect,
} from 'react-native-tree-selection';
import { TreeDataTypes, TreeSelect } from 'react-native-tree-selection';

const App = () => {

return (
<TreeSelect
data={treeData}
Expand All @@ -128,7 +124,6 @@ const App = () => {
onChildPress={onChildPress}
onCheckBoxPress={onCheckBoxPress}
/>
/>
);
};

Expand Down
Binary file modified assets/Tree-Selection.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions example/src/theme/applicationStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import { moderateScale, verticalScale } from './Metrics';
const styles = StyleSheet.create({
container: {
flex: 1,
margin: moderateScale(20),
marginBottom: verticalScale(10),
alignItems: 'flex-start',
},
text: {
marginTop: verticalScale(50),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-tree-selection",
"version": "1.0.0",
"version": "1.0.1",
"description": "A high-performance and lightweight tree selection library for React Native.",
"main": "lib/index",
"types": "lib/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/components/TreeSelection/TreeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ const TreeSelect = ({
<FlatList
showsVerticalScrollIndicator={false}
{...flatListProps}
contentContainerStyle={styles.containerStyle}
data={listData}
renderItem={renderTree}
keyExtractor={(_item, index) => index.toString()}
Expand Down
5 changes: 5 additions & 0 deletions src/components/TreeSelection/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ const styles = StyleSheet.create({
color: Colors.white,
fontSize: moderateScale(18),
},
containerStyle: {
margin: moderateScale(20),
marginBottom: verticalScale(10),
alignItems: 'flex-start',
},
parentStyles: {
backgroundColor: Colors.parentContainerColor,
marginTop: verticalScale(5),
Expand Down

0 comments on commit b88aeea

Please sign in to comment.