Niunka was born in Baisogala to a family of a postal worker and seamstress. In 1919, he enrolled at the Šiauliai Gymnasium and graduated in 1925. He continued his studies at the University of Kaunas. Due to financial difficulties, he could not attend classes in Kaunas and instead took correspondence courses in law while working as a teacher in Šiauliai. In 1925–28, he taught Lithuanian language at a high school. Due to frequent arrests and imprisonments, he obtained the law diploma only in 1939. While visiting Kaunas, he became interested in communism. At the time, the Communist Party of Lithuania and its press were outlawed in Lithuania. Niunka was arrested in April 1927 for the possession of an illegal communist newspaper. That time he was released, but became a person of interest to the Lithuanian intelligence. In May 1928, Niunka took a more active role in the communist underground – he wrote articles to communist newspapers and helped smuggling communist publications from Kaunas to Šiauliai. For that he was arrested in November 1928 and sentenced to imprisonment at the Varniai Concentration Camp. There were many other communists at the camp and they organized self-education in communist theory. The camp was closed bringing Niunka's release in October 1931. Niunka returned to Šiauliai and took up private lessons. He became a leader of the regional communist section. He was arrested in February 1933 and sentenced to three months in Šiauliai Prison. Upon release, Niunka moved to Kaunas where he joined Kaunas district communist committee and edited its newspaper Revoliucinis darbininkas. He was arrested again in August 1935 and July 1936. Antanas Sniečkus returned to Lithuania in 1936 and began looking for new people to fill leadership positions within the CPL. Niunka was co-opted to the Central Committee of CPL in mid-1937. He also edited Tiesa and published Propagandistas for political education of the party. He was tasked with approaching left-wing activists about creating a unified popular front. He published newspapers Liaudies frontas and Antifašistas aimed at this, but ultimately he was not successful. He was arrested in May 1938 and imprisoned for nine months in Dmitravas Forced Labor Camp. He was arrested again in July 1939 and sent for a year to the same camp in Dmitravas.
Soviet Lithuania
On 15 June 1940, Lithuania was occupied by the Soviet Union. Niunka was freed on 18 June and appointed editor of Tiesa. He was involved in the show elections to the People's Seimas: helped draft the new election law and became chairman of the electoral commission. Niunka was given only 12 hours to prepare the law which allowed only one candidate per seat. He helped to falsify the election results. From August 1940 to May 1944, he was the chief prosecutor of the Lithuanian SSR. When Nazi Germany invaded in June 1941, Niunka evacuated to Moscow. There he joined the propaganda section of the CPL and worked publishing communist press. In April 1944, he became the second secretary of CPL but was quickly dismissed by Mikhail Suslov for "softness". Niunka was elected to the Politburo of CPL in August 1944. Niunka was a deputy chairman of the Council of Ministers of the Lithuanian SSR from January 1945 to November 1948. In April–November 1948, he was also Minister of Education. He moved on to become secretary of the Propaganda and Agitation Department of CPL until 1961. In this capacity, he chaired a commission on the translation and publication of collected works of Vladimir Lenin and other fundamental works of Marxism–Leninism. He supported sovietization and suppression of the Lithuanian culture and the Catholic Church. He advocated to prohibit Lithuanian deportees from returning to Lithuania. At the same time, he was a deputy of the Supreme Soviet of the Soviet Union as well as of the Supreme Soviet of the Lithuanian SSR and was its chairman from 1955 to 1963 – de jure equivalent to the speaker. From June 1953 to February 1954, he was also the second secretary of CPL. In 1961, Niunka left the Politburo and the Propaganda and Agitation Department, but remained a member of the Central Committee of CPL. He devoted his time to the academic work. He taught as docent at Vilnius University and edited theoretical journal Komunistas. In 1962, he became a corresponding member of the Lithuanian Academy of Sciences. His research, published as six separate books in 1963–1980, centered on politics of the Catholic Church. In 1971, he defended his theses to become a Candidate of Sciences but did not complete all the requirements for the Doctor of Sciences. In total, Niunka published 11 books and about 400 articles during his lifetime. He was awarded Order of Lenin, Order of the October Revolution, Order of the Red Banner of Labour, Order of the Patriotic War 2nd class, Order of the Badge of Honour. Niunka died in Vilnius in 1983 and was buried in Antakalnis Cemetery.