React Native: Cannot read property ‘match’ of undefined

A fair amount of times, while running react-native link [package] , I have seen the following error:

rnpm-install ERR! Something went wrong while linking. Error: Cannot read property ‘match’ of undefined

Every time, I’ve Googled it but did not find a satisfying answer and continued my way with manually linking the library. It turns out that all you need to do, is to add the following line in your Podfile after existing pod '[...] lines:

# Add new pods below this line

This comment is used by the “linking process” to know where to add the libraries’ pod(s) in your Podfile . So much thanks to LiuShuoyu for his comment on react-native ‘s repository.