Well, peanut allergy is lethal and can be triggered by even inhalation of peanut dust in more severe cases.
Sensitivity to sunlight is way more manageable (by applying sunscreen and covering the skin) and although kids share food and/or eat them in the same environment I don't think they're carrying UV lights to apply to other kids.
There is plenty of other potentially lethal allergies that can be just as severe, singling out peanuts is overkill as I mentioned in a sibling thread. (Soy, milk, wheat, gluten. Especially wheat allergy can cause reactions just as severe as the stereotypical peanut allergy)
edit: Note that an allergy to sunlight exposure (which is a thing) is not simply treated with sun cream
Can they trigger reaction by simply having it in the room? I can get an allergic reaction from having peanuts in the same room as I'm in, in the same way as a reaction from pollen or from animals. So wonder if other food based allergy can have the same effect on others
Sensitivity to sunlight is way more manageable (by applying sunscreen and covering the skin) and although kids share food and/or eat them in the same environment I don't think they're carrying UV lights to apply to other kids.