Skip to content

Commit 4a25a6f

Browse files
authored
Merge pull request #35 from JairajJangle/develop
docs: added hyperlink to properties section of readme
2 parents 604038e + 4068650 commit 4a25a6f

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,6 @@ jobs:
193193
run: npx semantic-release # Run semantic-release to manage versioning and publishing
194194
env:
195195
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub token for authentication
196+
197+
# Why NODE_AUTH_TOKEN instead of NPM_TOKEN: https://github.com/semantic-release/semantic-release/issues/2313
196198
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # npm token for publishing package

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,18 @@ export function TreeViewUsageExample(){
9797

9898
| Property | Type | Required | Description |
9999
| ---------------------------------- | ------------------------------------------------------------ | -------- | ------------------------------------------------------------ |
100-
| `data` | `TreeNode[]` | Yes | An array of `TreeNode` objects |
100+
| `data` | [TreeNode](#treenode) | Yes | An array of `TreeNode` objects |
101101
| `onCheck` | `(checkedIds: string[]) => void` | No | Callback when a checkbox is checked |
102102
| `onExpand` | `(expandedIds: string[]) => void` | No | Callback when a node is expanded |
103-
| `preselectedIds` | `string[]` | No | An array of `id`s that should be pre-selected |
104-
| `preExpandedIds` | `string[]` | No | An array of `id`s that should be pre-expanded |
103+
| `preselectedIds` | `string[]` | No | An array of `id`s that should be pre-selected |
104+
| `preExpandedIds` | `string[]` | No | An array of `id`s that should be pre-expanded |
105105
| `indentationMultiplier` | `number` | No | Indentation (`marginStart`) per level (defaults to 15) |
106-
| `treeFlashListProps` | `TreeFlatListProps` | No | Props for the flash list |
107-
| `checkBoxViewStyleProps` | `BuiltInCheckBoxViewStyleProps` | No | Props for the checkbox view |
108-
| `CheckboxComponent` | `ComponentType<CheckBoxViewProps>` | No | A custom checkbox component. Defaults to React Native Paper's Checkbox |
109-
| `ExpandCollapseIconComponent` | `ComponentType<ExpandIconProps>` | No | A custom expand/collapse icon component |
110-
| `ExpandCollapseTouchableComponent` | `ComponentType<TouchableOpacityProps>`<br />(React Native's `TouchableOpacityProps`) | No | A custom expand/collapse touchable component |
111-
| `CustomNodeRowComponent` | `React.ComponentType<NodeRowProps>` | No | Custom row item component |
106+
| `treeFlashListProps` | [TreeFlatListProps](#treeflatlistprops) | No | Props for the flash list |
107+
| `checkBoxViewStyleProps` | [BuiltInCheckBoxViewStyleProps](#builtincheckboxviewstyleprops) | No | Props for the checkbox view |
108+
| `CheckboxComponent` | `ComponentType<`[CheckBoxViewProps](#checkboxviewprops)`>` | No | A custom checkbox component. Defaults to React Native Paper's Checkbox |
109+
| `ExpandCollapseIconComponent` | `ComponentType<`[ExpandIconProps](#expandiconprops)`>` | No | A custom expand/collapse icon component |
110+
| `ExpandCollapseTouchableComponent` | `ComponentType<`[TouchableOpacityProps](https://reactnative.dev/docs/touchableopacity#props)`>` | No | A custom expand/collapse touchable component |
111+
| `CustomNodeRowComponent` | `React.ComponentType<`[NodeRowProps](#noderowprops)`>` | No | Custom row item component |
112112

113113
ℹ️ If `CustomNodeRowComponent` is provided then below props are not applied:
114114

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
"build:android": "cd example/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
3838
"build:ios": "cd example/ios && pod install && xcodebuild -workspace TreeMultiSelectExample.xcworkspace -scheme TreeMultiSelectExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO",
3939
"bootstrap": "yarn example && yarn install && yarn example pods",
40-
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build",
41-
"generate-changelog": "auto-changelog"
40+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build"
4241
},
4342
"keywords": [
4443
"react-native",
@@ -93,7 +92,6 @@
9392
"@types/react-native": "0.70.0",
9493
"@types/react-native-vector-icons": "^6.4.13",
9594
"@types/react-test-renderer": "18.0.0",
96-
"auto-changelog": "^2.4.0",
9795
"commitlint": "^17.0.2",
9896
"del-cli": "^5.0.0",
9997
"eslint": "^8.4.1",

0 commit comments

Comments
 (0)