Another way you can secure the battery and receiver is:
Wrap them in foam and secure the foam with some masking tape. Then use a couple of strips of self adhesive velcro - one on the receiver/battery, the other on a suitable surface inside the plane.
I use this method on my planes and even though I have had some hard crashes

They have only come loose once.
FWIW - I usually mount my battery IN FRONT of the receiver. In case of a crash, I don't want the battery to plow into the receiver if it should come loose.