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

How to Check React Version Installed in Your System by Checking PACKAGE.JSON File and Executing Command from COMMAND PROMPT

Dear friends in this video, i am going to explain how to check react version installed in your system using Command Propmt and  Package.json file




Find React Version  from package.json file


First i will explain how to find react version using your project files.  This is my project react version it has package.json file. Let me open package.json file, here dependencies we can see react 18.0.0. So in my system react version is 18.0.0.






Find React Version version from Command Propmt


Instead of checking react version from the package.json file of your project files, we have another method. We can check react version using command prompt. I will explain how to check react version using command prompt. Please click windows and r key from your keyboard. It will open run window. Type cmd and click ok. Command prompt window is opened in your system now. Now you have to type the command npm view react version press enter key. Yes it's showing 18.0.0  So in my system react version is 18.0.0  From package.json file and using command prompt we can find react version running in my system.


I hope this helped you to find react version 


thank you