Email inbox not opening with react native email link

Viewed 571

Hello my name is Rajdeep Singh. I was trying to open the gmail inbox in react native with react-native-email-link.The following code is the code which is not working.

import * as React from 'react';
import { Text, View, StyleSheet, TouchableOpacity } from 'react-native';
import { openInbox } from 'react-native-email-link';

export default function App() {
  return (
    <View>
      <TouchableOpacity
        style={styles.buttonstyle}
        onPress={() => {
          openInbox();
        }}>
        <Text>OPEN MAIL APP</Text>
      </TouchableOpacity>
    </View>
  );
}

const styles = StyleSheet.create({
  buttonstyle: {
    alignSelf: 'center',
    justifyContent: 'center',
    fontSize: 20,
    marginTop: 150,
    fontWeight: 'bold',
  },
});

So what is happening is that when I am clicking on the open mail app button nothing is happening.

Please help me.

0 Answers
Related