wangdicoder / react-native-indicator Goto Github PK
View Code? Open in Web Editor NEW🌀 A friendly loading indicator component for React Native
License: MIT License
🌀 A friendly loading indicator component for React Native
License: MIT License
First of all, your component is really good, but I encountered a problem, I am waiting for the fetch to display the animation, in order to optimize the performance of the request after the implementation of the method written in the InteractionManager.runAfterInteractions (callback), but your animation components Has been in the implementation of the runAfterInteractions incident can not be triggered. Is there a good suggestion?
Getting a warning saying Animated: useNativeDriver
was not specified. This is a required option and must be explicitly set to true
or false
Loaders which have transparency set in (i.e. opacity <1) like Ripple loader etc shows up without transparency on Android. Shows as desired on iOS.
android 10
RN: 0.63
I have used this once in an earlier UI and it worked fine.
Now, I need to have it appear over a scroll view (or any component) and the z-order is not working. It appears behind the scrollview. Below is the code
Function called by rendered (to allow conditional rendering):
`
/*
if(this.state.activityVisible)
{
return (
<View style={styles.overlayAnimation} >
<View style>
<BubblesLoader color="red" />
<TextLoader text="Registering" />
</View>
</View>
)
}
else
{
return ""
}
}`
The render section which calls this function:
` render()
{
return (
<Button transparent onPress={() => Actions.pop()}>
<Icon name="ios-arrow-back" />
</Button>
<Title>Register</Title>
</Header>
{ this.getActivityIndicator() }
<ScrollView >
<View>
<Text style={styles.labelCenter}>
Click here to select community
</Text>
<ModalPicker data={this.getCommunities() } initValue="Gahanna" onChange={(option)=>{ this.setState({selectedCommunity:option.label})}}>
</ModalPicker>
</View>`
Note, I originally had the styling inline, but now using externally:
overlayAnimation:
{
position : 'absolute',
backgroundColor: 'red',
top : 150,
bottom : 0,
left : 165,
right : 0,
zIndex : 1,
},
Element type is invalid: expected a string or a class but got : undefined error.
Thanks for this great component though!
ios集成
<View style="loadView">
<CirclesLoader color:red />
<TextLoader text="Loading" />
</View>
Setting a value on strokeWidth
results in no change of thickness.
eg
<RotationHoleLoader color="#fff" size={55} strokeWidth={4} />
The size
works fine, the strokeWidth
does nothing.
Hi,
Warning: componentWillReceiveProps is deprecated and will be removed in the next major version. Use static getDerivedStateFromProps instead.
Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks
Version:
react: 16.8.6
react-native: 0.60.3
react-native-indicator: 1.0.0
Bug:
requireNativeComponent: "ARTShape" was not found in the UIManager.
On RN >= 60 and Expo SDK36 the project will not work because it works with '@react-native-community/art'
and he was removed on SDK 36.
this project needs to adopt or EXPO ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.