Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

⛹️‍♀️⛹️‍♂️ Like animation LoadingIndicator with frame by frame view in React-Native

License

NotificationsYou must be signed in to change notification settings

heyman333/react-native-frame-loading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package offers Loading indicator with frame by frame view or image

Install

yarn add react-native-frame-loading# or npm install react-native-frame-loading --save

Screenshot

Props

propsdefaulttypedescription
animatingfalseboolDetermines wheter the loading indicator shows or not
views[]arraySpecific views that will be shown frame by frame
duration450numberDetermines how long a frame lasts
modalProps{}objectoriginalModal component props
loadingContainerStyleflex: 1, "center"objectstyle object of floating view container

Usage

importFrameLoadingfrom"react-native-frame-loading"importIconfrom"react-native-vector-icons/FontAwesome"constVIEWS=[<Viewkey={1}><Iconname="arrow-up"size={50}/></View>,<Viewkey={2}><Iconname="arrow-right"size={50}/></View>...]render(){return(<Viewstyle={styles.container}><ButtononPress={this._fetchSomeData}title="show animation"/>\<FrameLoadinganimating={this.state.loading}views={VIEWS}duration={250}modalProps={{transparent:true}}loadingContainerStyle={{justifyContent:"center",alignItems:"center",flex:1,backgroundColor:"rgba(49,49,49,0.4)"}}/></View>)}}

About

⛹️‍♀️⛹️‍♂️ Like animation LoadingIndicator with frame by frame view in React-Native

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp