Comments (2)
My team built a short workaround (wrapper) for this.
import React, { Component } from 'react';
import { Platform, View } from 'react-native';
import FastImage from 'react-native-fast-image';
export default class FastImageWeBurn extends Component {
render() {
const { children, ...otherProps } = this.props;
const markup = Platform.OS === 'android' ? (
<View>
<FastImage {...otherProps} />
<View>
{children}
</View>
</View>
) : (
<FastImage {...this.props} />
);
return markup;
}
}
So while we now can use children on Android, it's still necessary to use absolute positioning within the FastImage Wrapper. E.g. we are using this to put transparent overlays on a FastImage. The overlay has the same size as the image and we position it absolute with top: -IMAGE_SIZE π
Hope this solution helps someone on here
from react-native-fast-image.
That's roughly how it's implemented now π
from react-native-fast-image.
Related Issues (20)
- Support for iOS 17 HOT 22
- defaultSource not working HOT 2
- Need an alternative, this repo is dead HOT 15
- Error due tintColor HOT 2
- Is it abandoned? HOT 13
- Crashes the app, as IOS has deprecated UIGraphicsBeginImageContextWithOptions from IOS 17. HOT 7
- Critical WebP 0-day security CVE-2023-4863 HOT 3
- Gif in ios HOT 1
- Gifs only play once HOT 2
- react-native 0.73 [FFFastImageView setOnClick:]: unrecognized selector sent to instance HOT 5
- Android FastImage keeps refreshing on background to foreground, iOS is fine. HOT 3
- Android onError is not called when uri is empty or null HOT 1
- Kotlin support for the current React native version
- "FastImageView" was not found in the UIManager HOT 4
- Update to SDWebImage to 5.18.7 or higher for privacy manifest before Apple's May 1 deadline HOT 5
- App crashes when loading high resolution image. HOT 1
- setOnFastImageError
- New Package Update HOT 4
- Tried to access a JS module before the React instance was fully set up. HOT 9
- how to get fastimage image data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-fast-image.