Neon (1s2 2s2 2p6) has two electrons in the s orbital of shell 1, two electrons in the s orbital of shell 2 and six electrons in the p orbital of shell 2. This electronic situation is so stable that Neon does not combine with any atom.
Atoms such as Boron, Carbon, Nitrogen and Oxygen, which lack electrons to acquire the Neon configuration, achieve it by sharing electrons with other atoms.
BH3 | CH4 | NH3 | H2O |
Sodium and Magnesium have complete electron shells 1 and 2 and one and two electrons, respectively, in the s orbital of shell 3. It is very easy for them to completely give up one electron (Sodium) or two (Magnesium) to another atom that be easy to accept them. Sodium and Magnesium form bonds by giving up electrons, NOT by sharing.
For its part, Fluorine lacks one electron to have complete shell 2.
It is very easy for it to accept an electron from another atom that gives it up easily to achieve the Neon configuration.
Fluorine forms bonds by accepting electrons.