Skip to content

Commit

Permalink
feat: add info to migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Aug 28, 2022
1 parent 875ceec commit 6952379
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Binary file added docs/assets/screenshots/segmentedbuttons.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/pages/10.migration-guide-to-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ Take a look at the suggested replacement diff:

# Components

## New Component: SegmentedButtons

Segmented buttons help people select options, switch views, or sort elements. They include single and multiselect select variant and a lot of customization options.

![segmentedButtons](screenshots/segmentedbuttons.gif)


## Appbar <i>(Top app bar)</i>

`Appbar` and `Appbar.Header` in the latest version can be used in four various modes due to new prop `mode`:
Expand Down
2 changes: 1 addition & 1 deletion src/components/SegmentedButtons/SegmentedButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export type Props = {
* ## Usage
* ```js
* import * as React from 'react';
* import { SegmentedButton } from 'react-native-paper';
* import { SegmentedButtons } from 'react-native-paper';
*
* const MyComponent = () => {
* const [value, setValue] = React.useState('');
Expand Down

0 comments on commit 6952379

Please sign in to comment.