Skip to content

Color rendered by react-native-skia is inconsistent with native rendering #3246

@zhuscat

Description

@zhuscat

Description

Image

The color I'm using is #F0605C. It's apparent that the color rendered by Skia differs from the native rendering.

React Native Skia Version

2.1.1

React Native Version

0.79.5

Using New Architecture

  • Enabled

Steps to Reproduce

Use the code below

I use iOS simulator(iOS 18.2)

Snack, Code Example, Screenshot, or Link to Repository

import { View, Text } from 'react-native'
import {
  Canvas,
  Circle,
} from '@shopify/react-native-skia'

function Demo() {
  return (
    <View>
      <Text>Skia</Text>
      <Canvas style={{ width: 40, height: 40 }}>
        <Circle cx={20} cy={20} r={20} color="#F0605C" />
      </Canvas>
      <Text>RN View</Text>
      <View
        style={{
          width: 40,
          height: 40,
          backgroundColor: '#F0605C',
          borderRadius: 100,
        }}
      />
    </View>
  )
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions