A lot longer than a decade. But it depends on the city. Beijing electrified earlier (like 2004 or so), Shanghai followed, then you have smaller cities where gas was allowed for much longer.
> They had a fully electric taxi service about 7 years ago.
What city? Surely not Beijing. Maybe Shenzhen?
> Inside the city medium size trucks (for delivering merchandise to stores) are all electric.
I'm beginning to doubt you here. The delivery trikes are electric. But the small trucks that deliver merchandise to stores? Definitely not the blue trucks that are only allowed inside the 5th ring at night and cause air quality to tank after midnight.
> The international market is fragmentary and you can be arbitrarily extrajudicially curb stomped with tariffs or outright bands due to anti China hysteria
China's market is limited by their own protectionism. It is hard to tell someone to "open up" when you aren't willing to do the same yourself.