After President Donald Trump tweeted Wednesday that transgender people will no longer be permitted to serve in the military, tech leaders voiced their disappointment on social media.

"Everyone should be able to serve their country--no matter who they are," Mark Zuckerberg, the CEO of Facebook, wrote on his page shortly after Trump made the announcement.

Apple CEO Tim Cook, Google CEO Sundar Pichai, and Twitter CEO Jack Dorsey also tweeted about the president's decision and used the trending hashtag #LetThemServe. Uber's communications account sent a message of gratitude to transgender service members.











Trump said American forces can't afford the "tremendous medical costs and disruption" of transgender service members. A 2016 Rand Corporation study commissioned by the Pentagon found that allowing transgender people to serve would increase health care costs by $2.4 million a year, or a 0.04 to 0.13 percent increase in Defense Department spending.

Trump said he consulted military experts, but U.S. Secretary of Defense James Mattis was given only a day's notice on the president's decision, according to The New York Times. The White House could not answer questions on how the ban would be carried out or how it would affect openly transgender people who are currently on active duty.

Since Trump took office in January, technology leaders have spoken out against some of his biggest policy decisions. Many wrote tweets and issued statements criticizing the president's travel ban that barred people from several predominantly Muslim countries from entering the U.S., as well as his decision in June to withdraw the U.S. from the Paris Climate Agreement.