Skip to main content

Posts

Showing posts from February, 2023

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

RangeError: Invalid array length error fixed in javascript with examples

RangeError: Maximum call stack size exceeded in Javascript fixed with examples

TypeError: Cannot delete property '2' of [object Array] TypeError: Cannot add property 3, object is not extensible errors fixed

Error: Invalid `prisma.$executeRaw()` invocation: fixed using log: ["query"] option

Unhandled Runtime Error TypeError: Do not know how to serialize a BigInt

`bigint` cannot be serialized as JSON. Please only return JSON serializable data types

The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.

How to move to another directory D,E,F etc from C drive in command prompt(CMD)

Error: Cannot find module 'C:\Users\Administrator\use' error in node js using node version manager (nvm) fixed