Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaskedView with react-native-svg-charts #159

Open
MikeCod opened this issue Jun 10, 2022 · 0 comments
Open

MaskedView with react-native-svg-charts #159

MikeCod opened this issue Jun 10, 2022 · 0 comments

Comments

@MikeCod
Copy link

MikeCod commented Jun 10, 2022

Hello,

I wanted to use MaskedView with react-native-svg-charts but it doesn't work :

<MaskedView
	style={{flex:1, height:400}}
	maskElement={
		<View style={{flex:1, height:400, backgroundColor:"transparent"}}>
			<BarChart
				style={{flex:1, height:400}}
				data={my_profile.statistics_character}
				svg={{fill:"white"}}
				contentInset={{top:0, bottom:15}}
				yMin={0}
				yMax={100}
			>
				<Grid />
			</BarChart>
		</View>
	}
>
	<Image style={{flex:1, height:400, width:"100%", resizeMode:"cover"}} source={require("../../assets/img/galaxy.jpg")}/>
</MaskedView>

Does anyone have an idea ?

Thanks,

Mike

@MikeCod MikeCod changed the title Use with react-native-svg-charts MaskedView with react-native-svg-charts Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant