Add support for nativeEvents