adding center()

Test Plan: npm run test

Reviewers: danny

Reviewed By: danny

CC: josh, diana, jason

Differential Revision: https://50.18.170.14/D4433