If you get this error while running ios, you probably didn't rebuild ios.
Documentation of expo-localization states:
Run npx pod-install after installing the npm package.
npx pod-install
Or you can run `npm run ios`. This should resolve the issue