stream-chat-react-native
stream-chat-react-native copied to clipboard
Allow to change RefreshControl tintColor
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch [email protected] for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/stream-chat-react-native-core/lib/commonjs/components/ChannelList/ChannelListMessenger.js b/node_modules/stream-chat-react-native-core/lib/commonjs/components/ChannelList/ChannelListMessenger.js
index e2c9689..7bbb1de 100644
--- a/node_modules/stream-chat-react-native-core/lib/commonjs/components/ChannelList/ChannelListMessenger.js
+++ b/node_modules/stream-chat-react-native-core/lib/commonjs/components/ChannelList/ChannelListMessenger.js
@@ -223,6 +223,7 @@ var ChannelListMessengerWithContext = function ChannelListMessengerWithContext(p
refreshControl: _react["default"].createElement(_reactNative.RefreshControl, {
onRefresh: refreshList,
refreshing: refreshing,
+ tintColor: "#ffffff",
__self: _this,
__source: {
fileName: _jsxFileName,
diff --git a/node_modules/stream-chat-react-native-core/lib/module/components/ChannelList/ChannelListMessenger.js b/node_modules/stream-chat-react-native-core/lib/module/components/ChannelList/ChannelListMessenger.js
index e2c9689..7bbb1de 100644
--- a/node_modules/stream-chat-react-native-core/lib/module/components/ChannelList/ChannelListMessenger.js
+++ b/node_modules/stream-chat-react-native-core/lib/module/components/ChannelList/ChannelListMessenger.js
@@ -223,6 +223,7 @@ var ChannelListMessengerWithContext = function ChannelListMessengerWithContext(p
refreshControl: _react["default"].createElement(_reactNative.RefreshControl, {
onRefresh: refreshList,
refreshing: refreshing,
+ tintColor: "#ffffff",
__self: _this,
__source: {
fileName: _jsxFileName,
diff --git a/node_modules/stream-chat-react-native-core/src/components/ChannelList/ChannelListMessenger.tsx b/node_modules/stream-chat-react-native-core/src/components/ChannelList/ChannelListMessenger.tsx
index ce88b10..e74c796 100644
--- a/node_modules/stream-chat-react-native-core/src/components/ChannelList/ChannelListMessenger.tsx
+++ b/node_modules/stream-chat-react-native-core/src/components/ChannelList/ChannelListMessenger.tsx
@@ -165,7 +165,7 @@ const ChannelListMessengerWithContext = <
onEndReached={onEndReached}
onEndReachedThreshold={loadMoreThreshold}
ref={setFlatListRef}
- refreshControl={<RefreshControl onRefresh={refreshList} refreshing={refreshing} />}
+ refreshControl={<RefreshControl onRefresh={refreshList} refreshing={refreshing} tintColor="#ffffff" />}
renderItem={renderItem}
style={[styles.flatList, { backgroundColor: white_snow }, flatList]}
testID='channel-list-messenger'
This issue body was partially generated by patch-package.
gz#21513
Hey team! Please add your planning poker estimate with ZenHub @Enigma-I-am @khushal87 @madsroskar @vishalnarkhede
Please add your planning poker estimate with ZenHub @santhoshvai
@KROSF I'll be closing this issue due to inactivity. Please don't hesitate to contact us in the future if this issue is still relevant or if any questions arise.