Hi,
Tankless water RV heaters are not so good. If they are used in a cold climate, such as Oregon when the temperature is only 45F water inlet, the water will only get 'warmed' while in a area like Florida, with 65 or 70F inlet water, it will work great, heating all the water you might need to 105F.
However due to the water pump changing flow each minute, the flow switch might shut off while you are showering. SO yes there are problems with a RV using a gas tankless water heater.
That said, I have a portable tankless L5 water heater with a 37,000 Btu input, rated to heat 5 liters per minute from 65 to 105F. Because my inlet water temp was only about 45F, my 6 gallon hot water tank would run out in only a couple of minutes, and I did not 'enjoy' my showers in the winter. So by using the tankless water heater to fill my 100 gallon fresh water tank, I could warm that tank to 85F and it kept my bedroom warmer too! After 2 days, it would cool down to about 65F, and still offered a long hot shower, I timed them at 15 minutes with warm inlet water and only 4 minutes with 45F water.
The L5 water heater is only about $140 at Amazon.com and the larger 55,000 Btu L-10 water heater is only a few dollars more. Both are designed for portable use, and can be hooked up to a garden hose, and would be easy to fill the fresh water tank, or take outside showers, or be used to wash a horse, ect.
I also camped with a friend and his 40' DP, with a 10 gallon gas/electric water heater. That is what I want in my next RV!
Good luck,
Fred.