Skip to content

Commit 967e102

Browse files
hannarederksch
authored andcommitted
updated readme
1 parent 8ff36d6 commit 967e102

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ function CityPicker() {
5555
| `containerStyle` | `StyleProp<ViewStyle>` | Style of the picker. |
5656
| `selectedIndicatorStyle` | `StyleProp<ViewStyle>` | Style of overlaying selected-indicator in the middle of the picker. |
5757
| `rotationFunction` | `(x: number) => number ` | Function to determine the x rotation of items based on their current distance to the center (which is x). Default is ![rotation equation](https://latex.codecogs.com/gif.latex?%5Csmall%20f%28x%29%20%3D%201%20-%20%5Cleft%20%28%201%5Cover2%20%5Cright%20%29%20%5E%7Bx%7D) |
58+
| `scaleFunction` | `(x: number) => number ` | Function to determine the scale of items based on their current distance to the center (which is x). Default is "1.0" |
5859
| `opacityFunction` | `(x: number) => number` | Function to determine the opacity of items based on their current distance to the center (which is x). Default is ![opacity equation](https://latex.codecogs.com/gif.latex?%5Csmall%20f%28x%29%20%3D%20%5Cleft%20%28%201%5Cover3%20%5Cright%20%29%20%5E%7Bx%7D) |
5960
| `decelerationRate` | "normal", "fast", number | How quickly the underlying scroll view decelerates after the user lifts their finger. See the [ScrollView docs](https://facebook.github.io/react-native/docs/scrollview.html#decelerationrate). Default is "fast". |
6061
| `containerProps` | `ViewProps` | Props that are applied to the container which wraps the `FlatList` and the selected indicator. |

0 commit comments

Comments
 (0)