Flexible and room-temperature (RT) ammonia gas sensors are needed for exhaled breath detection and recognition. Two-dimensional transition metal disulfides are potential materials for RT gas sensing because of their low band gap and a large number of edge-exposed sites that can provide strong binding to gas molecules. In this work, a 1D/2D heterostructured composite material of 2D tungsten disulfide (WS2) modified with 1D polyaniline (PANI) was proposed. The fibrous PANI adsorbed on the edges and inserted in the interlayers of the laminated WS2 provide more diffusion channels for the ammonia gas and act as sensing sites. The WS2@PANI-based sensor shows high selectivity for ammonia with satisfying reproducibility and long-term stability. A response of 216.3% and a short response/recovery time of 25 s/39 s were achieved for 100 ppm ammonia gas. The sensing mechanism was investigated in detail via complex impedance spectra and in situ FT-IR, which was attributed to the synergistic effect of WS2 and PANI. The excellent sensing performance coupled with its resistance to thermal and humidity interference endows the WS2@PANI-based sensor with potential for human exhaled detection and wearable electronics.