react-native-interactions
react-native-interactions copied to clipboard
Not working with react-navigation
Does this library work with react-navigation? All of the screens that I wrap only contain the placeholder (the placeholder never goes away).
Hi @joncursi
You can only use react native component in placeholder. This not working:
import { UIActivityIndicator } from 'react-native-indicators';
export default class componentName extends PureComponent {
render() {
return (
<UIActivityIndicator color='#333' />
);
}
}
But this working:
export default class componentName extends PureComponent {
render() {
return (
<View style={{
flex: 1,
alignItems: 'center',
justifyContent: 'center'
}}>
<ActivityIndicator size="large" color='rgb(58,28,72)' />
</View>
);
}
}
I hope help you.