react-native-linear-gradient: Error: Expected [\n\r] but end of input found.

rnpm-install info Linking react-native-linear-gradient android dependency 
rnpm-install info Android module react-native-linear-gradient has been successfully linked 
rnpm-install ERR! It seems something went wrong while linking. Error: Expected [\n\r] but end of input found.
Please file an issue here: https://github.com/facebook/react-native/issues 

I get this error after doing react-native link react-native-linear-gradient

package:
"react": "15.4.1",
"react-native": "^0.39.2"

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18

Most upvoted comments

I solved it by adding a new line to end of ios/[Project].xcodeproj/project.pbxproj

I solved it by adding a new line to end of ios/[Project].xcodeproj/project.pbxproj

very nice, i solved this stupid error just one line 😄

@master-atul, you solved my problem for a completely different library. Thank you.

I got the same error when I ran npx react-native link for declaring the font assets in the react-native.config.js file.

    "react": "16.13.1",
    "react-native": "0.63.0",

But then @a7ul 's solution worked for me 😆 😆

I solved it by adding a new line to end of ios/[Project].xcodeproj/project.pbxproj

I still have this problem, I try to react-native link and my react-native is 0.43