<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rahul Chandra</title>
    <description>The latest articles on DEV Community by Rahul Chandra (@rahulrc1995).</description>
    <link>https://dev.to/rahulrc1995</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F268624%2F3e82848d-1cc6-4736-bdec-5feb90753260.jpg</url>
      <title>DEV Community: Rahul Chandra</title>
      <link>https://dev.to/rahulrc1995</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rahulrc1995"/>
    <language>en</language>
    <item>
      <title>RNGP - Autolinking: Could not find project.android.packageName in react-native config output!</title>
      <dc:creator>Rahul Chandra</dc:creator>
      <pubDate>Tue, 17 Sep 2024 19:02:45 +0000</pubDate>
      <link>https://dev.to/rahulrc1995/rngp-autolinking-could-not-find-projectandroidpackagename-in-react-native-config-output-23af</link>
      <guid>https://dev.to/rahulrc1995/rngp-autolinking-could-not-find-projectandroidpackagename-in-react-native-config-output-23af</guid>
      <description>&lt;p&gt;Some time adding this will work&lt;br&gt;
on react-native.config.js file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;module.exports = {
  project: {
    ios: {},
    android: {
      packageName: 'com.yourproject',
    },
  },
  assets: ['./src/components/assets/fonts/'],
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also delete autlinking.json and clean building android also worked for me&lt;/p&gt;

</description>
      <category>react</category>
      <category>reactnative</category>
    </item>
    <item>
      <title>React Native : How to override types in react navigation theme and add more</title>
      <dc:creator>Rahul Chandra</dc:creator>
      <pubDate>Thu, 12 Sep 2024 18:18:55 +0000</pubDate>
      <link>https://dev.to/rahulrc1995/react-native-how-to-override-types-in-react-navigation-theme-and-add-more-42bn</link>
      <guid>https://dev.to/rahulrc1995/react-native-how-to-override-types-in-react-navigation-theme-and-add-more-42bn</guid>
      <description>&lt;p&gt;Hi,&lt;br&gt;
How we can add more theme color's other than that are specified types in types&lt;br&gt;
There are different methods the method i followed is by adding a global.d.ts fil e in type folder in src and mentioning the colors needed types there and extending the theme class of react navigation&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import '@react-navigation/native';
// Override the theme in react native navigation to accept our custom theme props.
declare module '@react-navigation/native' {
export type Theme = {
dark: boolean;
colors: {
primary: string;
background: string;
background2: string;
card: string;
btColor: string;
text: string;
text2: string;
border: string;
notification: string;
};
};
export function useTheme(): Theme;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>reactnative</category>
    </item>
    <item>
      <title>React native tab view error :A props object containing a "key" prop is being spread into JSX</title>
      <dc:creator>Rahul Chandra</dc:creator>
      <pubDate>Thu, 12 Sep 2024 07:37:29 +0000</pubDate>
      <link>https://dev.to/rahulrc1995/react-native-tab-view-error-a-props-object-containing-a-key-prop-is-being-spread-into-jsx-35e0</link>
      <guid>https://dev.to/rahulrc1995/react-native-tab-view-error-a-props-object-containing-a-key-prop-is-being-spread-into-jsx-35e0</guid>
      <description>&lt;p&gt;Hi i have got this error when i tried react native lates version with react naitve tab view&lt;/p&gt;

&lt;p&gt;this patch fixed this issue&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;diff --git a/node_modules/react-native-tab-view/src/TabBar.tsx b/node_modules/react-native-tab-view/src/TabBar.tsx
index e8d0b4c..1c3c09f 100644
--- a/node_modules/react-native-tab-view/src/TabBar.tsx
+++ b/node_modules/react-native-tab-view/src/TabBar.tsx
@@ -364,8 +364,7 @@ export function TabBar&amp;lt;T extends Route&amp;gt;({

   const renderItem = React.useCallback(
     ({ item: route, index }: ListRenderItemInfo&amp;lt;T&amp;gt;) =&amp;gt; {
-      const props: TabBarItemProps&amp;lt;T&amp;gt; &amp;amp; { key: string } = {
-        key: route.key,
+      const props: TabBarItemProps&amp;lt;T&amp;gt; = {        
         position: position,
         route: route,
         navigationState: navigationState,
@@ -446,9 +445,9 @@ export function TabBar&amp;lt;T extends Route&amp;gt;({
         &amp;lt;&amp;gt;
           {gap &amp;gt; 0 &amp;amp;&amp;amp; index &amp;gt; 0 ? &amp;lt;Separator width={gap} /&amp;gt; : null}
           {renderTabBarItem ? (
-            renderTabBarItem(props)
+             renderTabBarItem({ key: route.key, ...props })
           ) : (
-            &amp;lt;TabBarItem {...props} /&amp;gt;
+            &amp;lt;TabBarItem key={route.key} {...props} /&amp;gt;
           )}
         &amp;lt;/&amp;gt;
       );

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>reactnative</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
