-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Showing weird yellow color and flickers on scroll #175
Comments
Did you manage to fix this? |
Yes,
My problem was with state, Actually it was re rendering my component again
and again. It was logical error which i debug later and resolved it.
…On Tue, Sep 27, 2022, 7:00 PM Md Javed Akhtar ***@***.***> wrote:
Did you manage to fix this?
—
Reply to this email directly, view it on GitHub
<#175 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVBZKU4H3BWNVDCQUTHCZCLWALZIBANCNFSM54Y5BPPA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I am not encountering any flickers, but do have a weird yellow color appearing on android |
import React from 'react';
import {Rating} from 'react-native-ratings';
import {useTheme} from ***@***.***/restyle';
import {Theme} from '../config/theme';
type RatingCompProps = {
rating: number;
};
const RatingComp: React.FC<RatingCompProps> = ({rating}) => {
const theme = useTheme<Theme>();
return (
<>
<Rating
tintColor={theme.colors.background}
imageSize={24}
ratingCount={5}
readonly={true}
startingValue={rating ?? 0}
/>
</>
);
};
export default RatingComp;
…On Wed, Sep 28, 2022, 11:16 AM Md Javed Akhtar ***@***.***> wrote:
I am not encountering any flickers, but do have a weird yellow color
appearing on android
<Rating type='custom' ratingImage={STAR_IMAGE} ratingColor='#fec91e'
ratingBackgroundColor={Colors.bgPrimary} ratingCount={5} imageSize={25}
readonly={true} startingValue={item.ratings} />
This is how I am using it, any suggestions as to how can I fix the weird
yellow color?
—
Reply to this email directly, view it on GitHub
<#175 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVBZKU3BRNFPDB7GMHOWM7LWAPLTHANCNFSM54Y5BPPA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Flickering occurs when we scroll in both ios and android.
The text was updated successfully, but these errors were encountered: