Skip to content

Commit

Permalink
Merge pull request #571 from DataDog/louiszawadzki/RUM-2173/improve-i…
Browse files Browse the repository at this point in the history
…OS-SR-performance

Use same color as RN for default text color
  • Loading branch information
louiszawadzki authored Dec 18, 2023
2 parents 9555a3b + 1a3cc68 commit 3c34d26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ internal class RCTTextViewRecorder: SessionReplayNodeRecorder {
}
}

// Black color. This is faster than accessing UIColor.black.cgColor.
let DEFAULT_COLOR = UIColor(white: 0, alpha: 1).cgColor
// Black color. This is the default for RN: https://github.com/facebook/react-native/blob/a5ee029cd02a636136058d82919480eeeb700067/packages/react-native/Libraries/Text/RCTTextAttributes.mm#L250
let DEFAULT_COLOR = UIColor.black.cgColor

internal struct RCTTextViewWireframesBuilder: SessionReplayNodeWireframesBuilder {
let wireframeID: WireframeID
Expand Down

0 comments on commit 3c34d26

Please sign in to comment.