<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: sreehari k</title>
    <description>The latest articles on DEV Community by sreehari k (@sreehari_k_8ee98a8fc68ec0).</description>
    <link>https://dev.to/sreehari_k_8ee98a8fc68ec0</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F795180%2F1352dc97-53d7-4096-9c6b-24c2f45e6219.jpeg</url>
      <title>DEV Community: sreehari k</title>
      <link>https://dev.to/sreehari_k_8ee98a8fc68ec0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sreehari_k_8ee98a8fc68ec0"/>
    <language>en</language>
    <item>
      <title>React native App firebase email authentication signup</title>
      <dc:creator>sreehari k</dc:creator>
      <pubDate>Thu, 24 Mar 2022 15:44:52 +0000</pubDate>
      <link>https://dev.to/sreehari_k_8ee98a8fc68ec0/react-native-app-firebase-email-authentication-signup-240a</link>
      <guid>https://dev.to/sreehari_k_8ee98a8fc68ec0/react-native-app-firebase-email-authentication-signup-240a</guid>
      <description>&lt;p&gt;`&lt;br&gt;
function Login({ navigation }) {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const [email, setEmail] = useState('');
const [password, setPassword] = useState('');
const [emailPlaceholder, setEmailPlaceholder]=useState('Email id');
const [passworPlaceholder, setPasswordPlaceholder]=useState('Password');

const signup = () =&amp;gt; {
    if(email !='' &amp;amp;&amp;amp; password !=''){
        auth().createUserWithEmailAndPassword(email, password).then((res)=&amp;gt;{
            navigation.navigate('Home')
            console.log('response', res)
        })
        .catch((error)=&amp;gt;{
            console.log('Error:', error);
            Alert.alert(error.message);
        })
    }else if(email == ''){
        // Alert.alert('email cannot be empty')
        setEmailPlaceholder('email cannot be empty')
    }else if(password == ''){
        setPasswordPlaceholder('password cannot be empty')
    }
}

const login = () =&amp;gt; {
    auth().signInWithEmailAndPassword(email,password).then((res)=&amp;gt;{
        navigation.navigate('Home')
        console.log('response', res)
    }).catch((error)=&amp;gt;{
        console.log('error',error)
    })
}

return (
    &amp;lt;View style={styles.container}&amp;gt;
        &amp;lt;TextInput style={styles.userInput} placeholder={emailPlaceholder}
            placeholderTextColor={'#3e4f6b'} value={email}
            onChangeText={setEmail} keyboardType='email-address' /&amp;gt;

        &amp;lt;TextInput style={styles.userInput} placeholder={passworPlaceholder}
            placeholderTextColor={'#3e4f6b'} value={password}
            onChangeText={setPassword} secureTextEntry={true} /&amp;gt;

        &amp;lt;View style={styles.buttonView}&amp;gt;
            &amp;lt;TouchableHighlight style={styles.button}
                onPress={signup} &amp;gt;
                &amp;lt;Text style={styles.buttonText}&amp;gt;Sign up&amp;lt;/Text&amp;gt;
            &amp;lt;/TouchableHighlight&amp;gt;
            &amp;lt;TouchableHighlight style={styles.button}
                onPress={login}&amp;gt;
                &amp;lt;Text style={styles.buttonText}&amp;gt;Login&amp;lt;/Text&amp;gt;
            &amp;lt;/TouchableHighlight&amp;gt;
        &amp;lt;/View&amp;gt;

    &amp;lt;/View&amp;gt;
)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;br&gt;
`&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>firebase</category>
      <category>androidapp</category>
      <category>reactnativesignup</category>
    </item>
    <item>
      <title>Which is the best database for react native?</title>
      <dc:creator>sreehari k</dc:creator>
      <pubDate>Tue, 22 Mar 2022 13:59:49 +0000</pubDate>
      <link>https://dev.to/sreehari_k_8ee98a8fc68ec0/which-is-the-best-database-for-react-native-1c0l</link>
      <guid>https://dev.to/sreehari_k_8ee98a8fc68ec0/which-is-the-best-database-for-react-native-1c0l</guid>
      <description>&lt;p&gt;Which database is best to use in react native mobile app&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aWWF8iEw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mpsvmc4cbuxzgu6riq8s.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aWWF8iEw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mpsvmc4cbuxzgu6riq8s.jpeg" alt="Image description" width="678" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>database</category>
      <category>reactnativedatabas</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Learning new skill</title>
      <dc:creator>sreehari k</dc:creator>
      <pubDate>Wed, 23 Feb 2022 04:18:29 +0000</pubDate>
      <link>https://dev.to/sreehari_k_8ee98a8fc68ec0/learning-new-skill-2o0b</link>
      <guid>https://dev.to/sreehari_k_8ee98a8fc68ec0/learning-new-skill-2o0b</guid>
      <description>&lt;p&gt;Almost completed i dreamed ever. Reach the final stage of learning react-native&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
