Skip to main content

Featured post

How to Insert line break in Text component in React Native

Hi, I was developing an application in react native.I have to handle lots of text data in this small react native application.I have used  Text component in react native many times. While working on this application,i had a requirement to display some text content with line breaks.I will explain it clearly with an example.I want to display a text as shown below  Welcome Please subscribe my channel I wrote react native code as shown below <View> <Text> Welcome Please subscribe my channel </Text> <View> When i run these lines of code,It will display text as shown below Welcome Please subscribe my channel   - instead of displaying in two lines with line break,it displays in a single line.So i have to find a solution to insert line break in Text component in React Native.After lots of research,i found a clean solution as shown below <View> <Text> Welcome{"\n"} Please subscribe my channel </Text> <View> Here ...

Error: Activity class {com.frontend/com.frontend.MainActivity} does not exist solved

Hi friends,

when i run my react native project in android studio i got the error  Error: Activity class {com.frontend/com.frontend.MainActivity} does not exist.frontend is the folder name in which i created my react native project.I hope you may also faced same  issue while you are working in react native project for android app

I will explain How do i fixed the error when i got the Error: Activity class {com.frontend/com.frontend.MainActivity} does not exist.I will explain step by step.Once i loaded my react native project android folder in android studio,i could build it successfully.But when i started to run the app on simulator on android studio,i got the above error





  1. Click Build Button
  2. Click Clean Project
  3. Click Rebuild Project


So after completing these steps we can easily run the app on simulator on android studio.If you face the same  Error: Activity class {com.frontend/com.frontend.MainActivity} does not exist again,please try to restart android studio,do gradle sync and run app on simulator again


Thanks