Moved the regexp towards ReactNativeComponent