-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
creacion de componente loading con animación
- Loading branch information
damian
committed
Jul 26, 2023
1 parent
99ec0d5
commit dfcb1ba
Showing
2 changed files
with
31 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import {Text} from 'react-native'; | ||
import Loading from '../../../src/components/Loading'; | ||
|
||
export default { | ||
title: 'Loading', | ||
argTypes: { | ||
isLoading: { | ||
options: [true, false], | ||
}, | ||
onValueChange: { | ||
action: 'Value changed!', | ||
}, | ||
disabled: { | ||
options: [true, false], | ||
control: {type: 'radio'}, | ||
}, | ||
}, | ||
}; | ||
|
||
export const DefaultProps = (props) => <Loading {...props} />; | ||
|
||
DefaultProps.storyName = 'default props'; | ||
|
||
DefaultProps.args = { | ||
isLoading: true, | ||
color: '#2979FF', | ||
duration: 1000, | ||
children: <Text>Loading</Text>, | ||
}; |