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 ...

TransformException Failed to transform react native 0 71 0 rc 0 debug aar to to match attributes solved

 Hi friends,




We are trying to solve an error which i got while i was working in react native project.I will show the error message which i got in android studio in react native project


TransformException Failed to transform react native 0 71 0 rc 0 debug aar (com facebook react native:0.71.0-rc.0) to match attributes


Caused by: org.gradle.api.internal.artifacts.transform.TransformException: Failed to transform react-native-0.71.0-rc.0-debug.aar (com.facebook.react:react-native:0.71.0-rc.0) to match attributes {artifactType=android-symbol-with-package-name, com.android.build.api.attributes.BuildTypeAttr=debug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.


So i fixed the TransformException Failed to transform react native 0 71 0 rc 0 debug aar (com facebook react native :0.71.0-rc.0) to match attributes error as shown in the below video.Please go through the video and try to solve it yourself


Thanks