Foxconn and Pegatron are both Taiwanese companies (who make devices for many major manufacturers, not just Apple) but most of their manufacturing has been in mainland China.
Although some of that manufacturing has started to shift recently to India and Vietnam.