ladjs / react-native-loading-spinner-overlay

:barber: React Native loading spinner overlay
MIT License
1.59k stars 173 forks source link

not working with children property #87

Closed rahulnainwal107 closed 4 years ago

rahulnainwal107 commented 5 years ago

spinner-overlay is not working using children property. I am doing something like this :

<Spinner
            visible={props.loading}
            cancelable={true}
            children={renderChildren}
        />

renderChildren is a arrow function like this:

const renderChildren = () => {
    return (
        <Text>Hello</Text>
    )
}