generated from jsamr/native-lib-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(react-native-li): enrich API of
renderMarker
and MarkerBox
BREAKING CHANGE: `renderMarker` and `MarkerBox` props have changed. Instead of letting the `MarkedListItem` generate the marker string, the `counterRenderer` and `counterIndex` are passed down to `renderMarker`.
- Loading branch information
Showing
17 changed files
with
120 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/react-native-li/docs/react-native-li.markedlistprops.markerboxstyle.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@jsamr/react-native-li](./react-native-li.md) > [MarkedListProps](./react-native-li.markedlistprops.md) > [markerBoxStyle](./react-native-li.markedlistprops.markerboxstyle.md) | ||
|
||
## MarkedListProps.markerBoxStyle property | ||
|
||
Style for the marker box container. It is discouraged to set `(min,max)width` that way. Use [MarkedListProps.computeMarkerBoxWidth](./react-native-li.markedlistprops.computemarkerboxwidth.md) instead. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
markerBoxStyle?: StyleProp<ViewStyle>; | ||
``` |
13 changes: 0 additions & 13 deletions
13
packages/react-native-li/docs/react-native-li.markedlistprops.markerstyle.md
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
packages/react-native-li/docs/react-native-li.markedlistprops.markertextstyle.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@jsamr/react-native-li](./react-native-li.md) > [MarkedListProps](./react-native-li.markedlistprops.md) > [markerTextStyle](./react-native-li.markedlistprops.markertextstyle.md) | ||
|
||
## MarkedListProps.markerTextStyle property | ||
|
||
A plain JavaScript object text style for the marker string. It is advised to pass the same `fontSize` and `lineHeight` as the list content for perfect horizontal alignment. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
markerTextStyle?: TextStyle; | ||
``` | ||
|
||
## Remarks | ||
|
||
It should not contain CSS box model properties and it should be a plain JavaScript object. \*\*Do not\*\* use StyleSheet or array styles. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...-native-li.markerboxprops.markerstring.md → ...-native-li.markerboxprops.counterindex.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@jsamr/react-native-li](./react-native-li.md) > [MarkerBoxProps](./react-native-li.markerboxprops.md) > [markerString](./react-native-li.markerboxprops.markerstring.md) | ||
[Home](./index.md) > [@jsamr/react-native-li](./react-native-li.md) > [MarkerBoxProps](./react-native-li.markerboxprops.md) > [counterIndex](./react-native-li.markerboxprops.counterindex.md) | ||
|
||
## MarkerBoxProps.markerString property | ||
## MarkerBoxProps.counterIndex property | ||
|
||
The content of the marker box. | ||
The index to render. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
markerString: string; | ||
counterIndex: number; | ||
``` |
13 changes: 13 additions & 0 deletions
13
packages/react-native-li/docs/react-native-li.markerboxprops.counterrenderer.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@jsamr/react-native-li](./react-native-li.md) > [MarkerBoxProps](./react-native-li.markerboxprops.md) > [counterRenderer](./react-native-li.markerboxprops.counterrenderer.md) | ||
|
||
## MarkerBoxProps.counterRenderer property | ||
|
||
The renderer to generate the marker string. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
counterRenderer: CounterStyleRenderer; | ||
``` |
13 changes: 13 additions & 0 deletions
13
packages/react-native-li/docs/react-native-li.markerboxprops.markertextstyle.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@jsamr/react-native-li](./react-native-li.md) > [MarkerBoxProps](./react-native-li.markerboxprops.md) > [markerTextStyle](./react-native-li.markerboxprops.markertextstyle.md) | ||
|
||
## MarkerBoxProps.markerTextStyle property | ||
|
||
Style for any text element. Should not contain CSS box model properties. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
markerTextStyle: TextStyle; | ||
``` |
13 changes: 13 additions & 0 deletions
13
packages/react-native-li/docs/react-native-li.markerboxprops.markertextwidth.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@jsamr/react-native-li](./react-native-li.md) > [MarkerBoxProps](./react-native-li.markerboxprops.md) > [markerTextWidth](./react-native-li.markerboxprops.markertextwidth.md) | ||
|
||
## MarkerBoxProps.markerTextWidth property | ||
|
||
The width for the marker text element. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
markerTextWidth: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters