Check out example codes for "how to find if something is colliding in godot". It will help you in understanding the concepts better.

Code Example 1

func _on_Flowers_body_entered(body):
	if body.name == "Player":
		get_tree().queue_delete(self)

Learn ReactJs, React Native from akashmittal.com