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!
The error message has explained clearly. You need to use
sealedmodifier to theMessagePostedEventArgsclass in ReactNativeWebViewBridge. If you didn't usesealed, you need to useComposableAttribute. More information aboutComposableAttribute, you could refer to James McNellis's answer in this thread:What is the ComposableAttribute in WinRT?This error meant that ImagePipelineNative.dll calls some unsupported APIs in UWP. You need to create an issue in react-native's repository.