Updated NativePageflip to handle configuration changes properly