Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ const config = {
DrawerSection: 'Drawer/DrawerSection',
},
FAB: {
FAB: 'FAB/FAB',
AnimatedFAB: 'FAB/AnimatedFAB',
FABGroup: 'FAB/FABGroup',
FloatingActionButton: 'FAB/FloatingActionButton',
ExtendedFloatingActionButton: 'FAB/ExtendedFloatingActionButton',
FloatingActionButtonMenu: 'FAB/FloatingActionButtonMenu',
},
HelperText: { HelperText: 'HelperText/HelperText' },
IconButton: {
Expand Down
8 changes: 4 additions & 4 deletions docs/src/components/BannerExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useColorMode } from '@docusaurus/theme-common';
import {
Avatar,
Button,
FAB,
FloatingActionButton,
DarkTheme,
LightTheme,
ProgressBar,
Expand Down Expand Up @@ -83,9 +83,9 @@ const BannerExample = () => {
<Button icon="camera" mode="contained" onPress={() => {}}>
Press me
</Button>
<FAB icon="plus" size="small" onPress={() => {}} />
<FAB icon="plus" size="medium" onPress={() => {}} />
<FAB icon="plus" size="large" onPress={() => {}} />
<FloatingActionButton icon="plus" size="default" onPress={() => {}} />
<FloatingActionButton icon="plus" size="medium" onPress={() => {}} />
<FloatingActionButton icon="plus" size="large" onPress={() => {}} />
<Avatar.Text label="MD" />
<Avatar.Icon icon="folder" />
</Stack>
Expand Down
2 changes: 0 additions & 2 deletions example/src/ExampleList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Divider, List, useTheme } from 'react-native-paper';
import { useSafeAreaInsets } from 'react-native-safe-area-context';

import ActivityIndicatorExample from './Examples/ActivityIndicatorExample';
import AnimatedFABExample from './Examples/AnimatedFABExample';
import AppbarExample from './Examples/AppbarExample';
import AvatarExample from './Examples/AvatarExample';
import BadgeExample from './Examples/BadgeExample';
Expand Down Expand Up @@ -51,7 +50,6 @@ import TooltipExample from './Examples/TooltipExample';
import TouchableRippleExample from './Examples/TouchableRippleExample';

export const mainExamples = {
AnimatedFAB: AnimatedFABExample,
ActivityIndicator: ActivityIndicatorExample,
Appbar: AppbarExample,
Avatar: AvatarExample,
Expand Down
10 changes: 7 additions & 3 deletions example/src/Examples/ActivityIndicatorExample.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import * as React from 'react';
import { StyleSheet, View } from 'react-native';

import { ActivityIndicator, FAB, List, Palette } from 'react-native-paper';
import {
ActivityIndicator,
FloatingActionButton,
List,
Palette,
} from 'react-native-paper';

import ScreenWrapper from '../ScreenWrapper';

Expand All @@ -11,8 +16,7 @@ const ActivityIndicatorExample = () => {
return (
<ScreenWrapper style={styles.container}>
<View style={styles.row}>
<FAB
size="small"
<FloatingActionButton
icon={animating ? 'pause' : 'play'}
onPress={() => setAnimating(!animating)}
/>
Expand Down
204 changes: 0 additions & 204 deletions example/src/Examples/AnimatedFABExample/AnimatedFABExample.tsx

This file was deleted.

61 changes: 0 additions & 61 deletions example/src/Examples/AnimatedFABExample/CustomFAB.tsx

This file was deleted.

Loading
Loading