react-native-fast-image Fails

Created on 18 Apr 2019  Â·  7Comments  Â·  Source: DylanVann/react-native-fast-image

Followed below steps:
npm i react-native-fast-image --save
npm link
and when I run app I get below error
" (0 , _react.forwardRef) is not a function "

Most helpful comment

@pavankumarkl upgrade your react to v16.6.0

All 7 comments

same issue "react-native": "0.59.6" android

@pavankumarkl upgrade your react to v16.6.0

Same here, but with react.memo instead of react.forwardRef. @romreed 's solution worked for me.

Edit:
Usage of FastImage component fails with this error.
Screen Shot 2019-04-25 at 12 09 08

Usage:

<FastImage
    style={styles.image}
    source={{
       uri: 'https://unsplash.it/400/400?image=1',
       priority: FastImage.priority.normal,
    }}
    resizeMode={FastImage.resizeMode.contain}
/>

Edit 2:

Manually linked it after running react-native link. Working like a charm now.

Captura de Pantalla 2019-04-25 a la(s) 16 17 16

after update react to 16.6.0, its work!

thanks to @romreed comment

RNFI only targets the latest version of React Native, which has an associated React version.

You will need to upgrade to a version of React later than 16.8.3.

thanks for your reply

@dylanvann

On Fri, 26 Apr, 2019, 8:02 AM Dylan Vann, notifications@github.com wrote:

RNFI only targets the latest version of React Native, which has an
associated React version.

You will need to upgrade to a version of React later than 16.8.3.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/DylanVann/react-native-fast-image/issues/448#issuecomment-486903691,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEMV7Q4LT64FHN3W2IDY3QLPSJSSBANCNFSM4HG3XZ6Q
.

@AlcuinGuest I am still getting this error.
"react": "^16.6.0",
"react-native-fast-image": "^5.2.0",
"redux": "^4.0.0",
"react-redux": "^5.0.7",
"react-native": "0.57.2",

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Aligertor picture Aligertor  Â·  3Comments

skleest picture skleest  Â·  3Comments

banphlet picture banphlet  Â·  3Comments

NgocNamFNT picture NgocNamFNT  Â·  3Comments

kkarmalkar picture kkarmalkar  Â·  4Comments