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

react-native-gesture-handler module was not found. Make sure you're running your app on the native platform and your code is linked properly (cd ios && pod install && cd ..)

Hi friends,



Today  i am going to discuss an error which i got when i try to run an app on android studio simulator.My project is in react native.I have used react-native-gesture-handler module in my project.I opened android folder of react native project on android studio.I did gradle sync and tried to run the app on simulator.

Immediately on my vs code terminal i got the error  react-native-gesture-handler module was not found. Make sure you're running your app on the native platform and your code is linked properly (cd ios && pod install && cd ..).We can install react-native-gesture-handler directly from npm packages and it is one of dependent npm package of react navigation library.

But in my case for the error,react-native-gesture-handler module was not found. Make sure you're running your app on the native platform and your code is linked properly (cd ios && pod install && cd ..)  i tried to uninstall and install the react-native-gesture-handler module again but still i got the error

i tried below commands also on the terminal

  1. cd android
  2. gradlew clean
  3. cd ..
  4. react-native run-android

Even though i tried to above commands, i still got the error.I encourage readers to provide a solution,if any of you found a right solution,please let me know


Thanks