-
Notifications
You must be signed in to change notification settings - Fork 675
Open
Description
Hi! ๐
Firstly, thanks for your work on this project! ๐
Today I used patch-package to patch react-native-charts-wrapper@0.6.0 for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-charts-wrapper/ios/ReactNativeCharts/bar/RNBarChartView.swift b/node_modules/react-native-charts-wrapper/ios/ReactNativeCharts/bar/RNBarChartView.swift
index fef1570..723a7e4 100644
--- a/node_modules/react-native-charts-wrapper/ios/ReactNativeCharts/bar/RNBarChartView.swift
+++ b/node_modules/react-native-charts-wrapper/ios/ReactNativeCharts/bar/RNBarChartView.swift
@@ -18,6 +18,11 @@ class RNBarChartView: RNBarChartViewBase {
return _dataExtract
}
+ override func layoutSubviews() {
+ super.layoutSubviews()
+ _chart.frame = self.bounds // Adjust the chart's frame to fill the entire component's bounds
+ }
+
override init(frame: CoreGraphics.CGRect) {
self._chart = BarChartView(frame: frame)This issue body was partially generated by patch-package.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels