@animo-id/expo-digital-credentials-api
Version:
Expo wrapper around Android Digital Credentials API
26 lines • 789 B
JavaScript
import { AppRegistry, View } from 'react-native';
import { ensureAndroid } from './util';
function WrappingComponent({ children }) {
return (<View style={{
flex: 1,
width: '100%',
height: '100%',
backgroundColor: 'transparent',
position: 'absolute',
bottom: 0,
left: 0,
right: 0,
}}>
{children}
</View>);
}
/**
* The component that will be rendered for an incoming request
*/
export default function register(Component) {
ensureAndroid();
AppRegistry.registerComponent('DigitalCredentialsApiActivity', () => ({ request }) => (<WrappingComponent>
<Component request={JSON.parse(request)}/>
</WrappingComponent>));
}
//# sourceMappingURL=register.js.map