Yes they are compatible. However a 30 litre tank is too small for Danios plus they need to be in a shoal (which means 6 or more of the same species) which means an even bigger tank. 70 litres is sufficient for a school of Danios. In your tank, adding a Betta may make it a target for the Danios as its a pretty small tank