After walking into an unlocked home, he swung a hatchet at two people inside before one of them disarmed him, according to the Los Angeles County District Attorney’s Office.
Local reports say he was looking for his girlfriend.
The 22-year-old is known for his song Watch Me (Whip/Nae Nae), which he wrote in his basement when he was 17 and released on YouTube.
The track went viral and inspired a dance craze, earning him a record deal.
Prosecutors say he has been charged on two counts of assault with a deadly weapon and is currently being held in jail on a US$105,000 bail.
The alleged incident is understood to have taken place at the weekend, in the Valley Village neighbourhood of Los Angeles.
Authorities said It occurred while he was out on bail for an earlier arrest in Orange County.
On 28 August, he had been released on a charge of inflicting corporal injury on a spouse or cohabitant following an alleged domestic disturbance.

