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

Render Error undefined is not an Object (evaluating _react.react .createElement) React Native

 


Hi ,in this article, i am going to teach you how to fix the error Render Error undefined is not an Object (evaluating _react.react .createElement) . when we start using react library , we face this type of error.The error Render Error undefined is not an Object (evaluating _react.react .createElement) is usually happens when we first start to write codes in react library.It happens when we import react library in the wrong way .So it is better to understand how to fix this Render Error and How to import React library in correct syntax 




I hope the above video is clear and it fixed your issue.So Now you know to how to import react library and How to fix Render Error undefined is not an Object (evaluating _react.react .createElement)