@Emma-Genovese There are multiple hurdles. Technically, you can share your works, as long as they don't generate any income. So, you aren't allowed to upload them on platforms where you have monetized accounts or which play ads. A simple, private website would be fine, though. YouTube was fine in the past, but they are now also playing ads on non-monetized channels, so it's a legal grey area.
You can get a commercial license for each loop pack from the in-app-store or Producerplanet.com.
Besides that, uploading loop based music on platforms with automated copyright systems can cause additional problems, even if you have a commercial license. Music distributors might reject your music for using samples and loops and platforms like YouTube might block or copyright claim your videos.