My daughter has gas past two days

Doesn't sleep well due to it, she's constantly farting or burping after she cries due to it. I've tried meds, warm bath, patting her, massaging her.... Anymore suggestions she is three weeks old