React-native-fast-image: FastImage not working

Created on 23 Nov 2017  路  5Comments  路  Source: DylanVann/react-native-fast-image

After apply FastImage. It not working for me only show border with color red. Please help me thanks.

My code

<FastImage style={{height:100, width:100}} source={{ uri: 'https://unsplash.it/400/400?image=1', headers:{ Authorization: 'someAuthToken' }, priority: FastImage.priority.normal, }} resizeMode={FastImage.resizeMode.contain} />

Most helpful comment

What if you are using expo?

All 5 comments

You installed the library via npm install react-native-fast-image --save, probably run react-native link but you didn't add the libFastImage.a to your .plist configuration, which may be different from the one that the link command uses. That was my case.

After adding it to your dependecies, rebuild the project in XCode.

image

We have a winner! Thanks @tiberiumihai

What if you are using expo?

using expo 2, please help to make it compatible

@Unlighten @gogogous88 You can't use third party native modules with Expo. Vote it up: https://expo.canny.io/feature-requests/p/add-react-native-fast-image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hawkup picture hawkup  路  3Comments

banphlet picture banphlet  路  3Comments

kkarmalkar picture kkarmalkar  路  4Comments

kmilodenisglez picture kmilodenisglez  路  3Comments

StiffFy picture StiffFy  路  3Comments