Derailer vs shifter

hi thanks for adding me to the group...I bought my son his 1st mountain bike as he has no experience with gears I decided to buy a used bike it is an older style carrera kraken.when he was out something happend and the derailer got damaged iv now found out the derailer on the bike was not the original . The one on the bike is a shimano with shimano shifters but the replacment is an sram x5. Iv Been given 2 different responses regarding mixing shifters and derailer so thought I'd ask the experts...will shimano shifters work with a sram x5 derailer or do I need to change the shifters also??? Thanks in advance
0
Posts
Sram would be the original fit, but I would go all Shimano than all SRAM on mid range.
Mixing and matching shifters and dérailleurs is not recommended.
There are some exceptions, I have a shimano SIS front tripple derailleur that works fine with a sram 3 speed shifter, but for rear derailleur, keep it matching.