React native windows - app certification kit failed

302 Views Asked by At

I'm making simple react-native app. Android version works fine (already on Google Play). Windows version is also working but It cannot pass through certification kit app. I've made release-bundle build according documentation:

https://github.com/Microsoft/react-native-windows/blob/master/docs/RunningOnDeviceWindows.md

App certification kit return errors:

Type ReactNativeWebViewBridge.MessagePostedEventArgs in file ReactNativeWebViewBridge.winmd is not sealed and does not have the ComposableAttribute. Unsealed types must have ComposableAttribute.

and

API getenv in api-ms-win-crt-environment-l1-1-0.dll is not supported for this application type. ImagePipelineNative.dll calls this API.

Built with Visual Studio 2017.

Am I missing something?

Thanks for any help!

1

There are 1 best solutions below

2
On BEST ANSWER

Type ReactNativeWebViewBridge.MessagePostedEventArgs in file ReactNativeWebViewBridge.winmd is not sealed and does not have the ComposableAttribute. Unsealed types must have ComposableAttribute.

The error message has explained clearly. You need to use sealed modifier to the MessagePostedEventArgs class in ReactNativeWebViewBridge. If you didn't use sealed, you need to use ComposableAttribute. More information about ComposableAttribute, you could refer to James McNellis's answer in this thread:What is the ComposableAttribute in WinRT?

API getenv in api-ms-win-crt-environment-l1-1-0.dll is not supported for this application type. ImagePipelineNative.dll calls this API.

This error meant that ImagePipelineNative.dll calls some unsupported APIs in UWP. You need to create an issue in react-native's repository.