stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

Allow to change RefreshControl tintColor

Open KROSF opened this issue 3 years ago β€’ 2 comments

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

KROSF avatar Apr 06 '22 09:04 KROSF

Hey team! Please add your planning poker estimate with ZenHub @Enigma-I-am @khushal87 @madsroskar @vishalnarkhede

vanGalilea avatar Apr 26 '22 09:04 vanGalilea

Please add your planning poker estimate with ZenHub @santhoshvai

vanGalilea avatar Apr 26 '22 09:04 vanGalilea

@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.

vanGalilea avatar Aug 16 '22 21:08 vanGalilea