<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rami Elwan on Medium]]></title>
        <description><![CDATA[Stories by Rami Elwan on Medium]]></description>
        <link>https://medium.com/@itsramiel?source=rss-1efb484ee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TA4Hf8q8hr3zAp6DsBikRg.png</url>
            <title>Stories by Rami Elwan on Medium</title>
            <link>https://medium.com/@itsramiel?source=rss-1efb484ee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 16:16:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itsramiel/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Create add to cart animation in React Native using Reanimated]]></title>
            <link>https://medium.com/@itsramiel/create-add-to-cart-animation-in-react-native-using-reanimated-1b2abe9fb00d?source=rss-1efb484ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b2abe9fb00d</guid>
            <category><![CDATA[reanimated]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Rami Elwan]]></dc:creator>
            <pubDate>Mon, 20 Jun 2022 12:18:06 GMT</pubDate>
            <atom:updated>2022-06-20T12:18:06.650Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*emSqF0N_ZN3qS-P60kARLg.png" /></figure><p>Animations play a major role in creating a delightful and rich user experience. One of the most popular react native animation libraries is react-native-reanimated. Reanimated has a straightforward api which makes building animations a breeze ༄.</p><p>In today’s blog post we will be building a add-to-cart FAb, floating-action-button, which animates from a plus sign to a check mark while animating the background color. I will walk you through setting up and building the animation step by step, while exposing my thought process. I will be using expo and typescript myself, but feel free to use bare react native and javascript if you want. Here is a demo of the final result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*lc2eG6XloDixtAxZEP1wlg.gif" /></figure><h3>Setup</h3><p>Let’s get started, first of all go to your terminal and run</p><p>expo init -t expo-template-blank-typescript animation-tutorial</p><p>This will initialize your new expo project with a typescript template. Next we need to add our animation library. Change the directory to your project’s directory and install the dependency using:</p><p>cd animation-tutorial &amp;&amp; expo install react-native-reanimated</p><p>To finalize the installation process open up your project in a code editor and open babel.config.js which should be in the root of your directory</p><pre>.<br>├── App.tsx<br>├── app.json<br>├── assets<br>├── babel.config.js &lt; — — — <br>├── node_modules<br>├── package.json<br>├── tsconfig.json<br>└── yarn.lock</pre><p>Inside babel.config.js, we need to add a plugin for react native reanimated. It should look like so after adding the plugin:</p><pre>module.exports = function(api) {</pre><pre>api.cache(true);</pre><pre>return {</pre><pre>presets: [&#39;babel-preset-expo&#39;],</pre><pre>plugins: [&#39;react-native-reanimated/plugin&#39;]</pre><pre>};</pre><pre>};</pre><p>The installation process should be done and now you can run</p><p>expo start and we’ll be able to start writing out code 👨‍💻.</p><h3>Coding</h3><p>Since we are building a FAB, our main component will be &lt;Pressable /&gt; from react-native core components. Remove the &lt;Text /&gt; component that was initially added by expo’s template and add a Pressable.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/179e67fc74e7694ece54fe78f47bf616/href">https://medium.com/media/179e67fc74e7694ece54fe78f47bf616/href</a></iframe><p>lines 4–6: added constants for fab size, and colors we will be transitioning from and to</p><p>line 12: replaced Text with Pressable</p><p>line 24–33: absolutely positioned button to the bottom right, gave it a border radius half of its size to give it a circular shape, set the backgroundColor to initial color to be able to see it.</p><h4>Color Transition</h4><p>Let us start with most satisfying yet so simple animation, transitioning the color.</p><p>First of all before creating any kind of animation, we need to create a variable that will drive all of our animations. This variable is called a shared value. Here is how Reanimated describe shared values:</p><blockquote>They serve a similar purpose of carrying “animateable” data, providing a notion of reactiveness, and driving animations.</blockquote><p>Our shared value can be in one of two states: 0 or 1.</p><p>If our shared value is 0 that means our animation didnt start yet or we are at the beginning of our animation.</p><p>if our shared value is at 1 that means our animation reached the end and has finished.</p><p>Inside our <strong>App.tsx </strong>add the following line of code inside our component to create a shared value of 0 or 1 with a name of <strong>progress</strong>:</p><p>const progress = useSharedValue&lt;0 | 1&gt;(0)</p><p>The value of progress is accessed through the value property on a shared value in our case:</p><p>progress.value</p><p>Make sure to add the import at the top of the file from Reanimated as such:</p><p>import { useSharedValue } from “react-native-reanimated”;</p><p>The way the value of our shared value will change is in two ways:</p><p>We will set the value to 1 when we press on the FAB, and we will reset the value to 0 when we long press on the FAb. Knowing so we all add the following code to our Pressable component:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b16092daa2ce88359b53d1dcf7bc7d88/href">https://medium.com/media/b16092daa2ce88359b53d1dcf7bc7d88/href</a></iframe><p>Now we need to change the background color according to this value. In order to do that we will create a style object using Reanimated <strong>useAnimatedStyle</strong>. We will use <strong>interpolateColor </strong>method to transition the color from initial to final value.</p><p>The way interpolatColor works is you pass it a shared value, input range, and output range.</p><p>shared value: in our case <em>progress.value</em>,</p><p>input range: the range you want to transition across, in our case the shared value will transition from o to 1 so <em>[0, 1]</em></p><p>output range: is the resulting colors mapping to the input range. In our case if progress. value is 0 we want it to be INITIAL_COLOR, however if progress.value is 1 we want it to be FINAL_COLOR.</p><p>As a result our style object will be constructed as so:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/20b5415447f955a8c94bd89f2dbdd0cd/href">https://medium.com/media/20b5415447f955a8c94bd89f2dbdd0cd/href</a></iframe><p>however we cannot add this style to our Pressable. We need to create an animated Pressable outside of our App component the following way:</p><p>const AnimatedPressable = Animated.createAnimatedComponent(Pressable)</p><p>and replace our normal Pressable with this one and pass it our style.</p><p>Here is how App component should look like should be looking like so far:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c4811d6e19cf241b21c9d3b72f5d3f0a/href">https://medium.com/media/c4811d6e19cf241b21c9d3b72f5d3f0a/href</a></iframe><p>If you try to press on FAb, you will notice that the color is changing but not smoothly 😭.</p><p>In order to make the change as smooth as butter 🧈, we need to change our onPress and onLongPress to the following:</p><p>onPress={() =&gt; (progress.value = withTiming(1))}</p><p>onLongPress={() =&gt; (progress.value = withTiming(0))}</p><p>As you can see here we are using withTiming from reanimated, which will make the transition happen over time which gives a nice, fluid animation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*y-qyepuii1GKmru3Eiwdiw.gif" /></figure><h4>Icon Transition</h4><p>With everything set, what’s left is the transition from a ➕ to a ✔️.</p><p>First let’s create the plus sign. The way we will do that is by adding two Views, one which is vertical and the other which is horizontal giving us a ➕ sign.</p><p>Let’s define the height and width our views, the height should definitely be shorter than FAB size so I chose the following dimensions:</p><pre>const VIEW_HEIGHT = 45;<br>const VIEW_WIDTH = 3;</pre><p>Add an Animated View from Reanimated inside our pressable and create a new animated style object as the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/89b083810af41a03219ed456738d6af3/href">https://medium.com/media/89b083810af41a03219ed456738d6af3/href</a></iframe><p>We added the width, height, and backgroundColor which should be simple to understand.</p><p>We positioned it absolutely to be able to center it. we set it top and left values to center it.</p><p>Next let’s add the horizontal View, in the same way but the width and height are swapped</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e923284197f1015646f9102ab79cf3a4/href">https://medium.com/media/e923284197f1015646f9102ab79cf3a4/href</a></iframe><p>The app now should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*-Ea3vCrTgFstDBIBoMEE-w.gif" /></figure><h4>Animate the Vertical View</h4><p>In order to animate the vertical view we need to rotate it 45 deg to make it at an angle. In order to achieve this we’ll need to use <strong>interpolate</strong> from Reanimated.</p><p>It is very similar to <strong>interpolateColor</strong> but instead it interpolates numbers. Change style1 to the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/06b756560dd1874ad7a1bfca0bd85c3e/href">https://medium.com/media/06b756560dd1874ad7a1bfca0bd85c3e/href</a></iframe><p>We are telling reanimated to give us 0 degrees of rotation at the beginning and 50 degrees at the end and we leave it up to reanimated to figure out the values in between.</p><p>Now we need to transtion the second View, the horizontal one.</p><p>We need to do 3 things to achieve that.</p><ol><li>rotate along with the vertical view</li><li>decrease its height</li><li>translate it across the y axis to make it at the bottom of the vertical view</li><li>translate it across the x axis to make it at the edge of the vertical view</li></ol><p>Here is the changed style2:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ec231b3413b1228de67f88e759e40f6/href">https://medium.com/media/9ec231b3413b1228de67f88e759e40f6/href</a></iframe><p>The final result 🥳🥳🥳:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*oOqUlhSEDzIOzsK3p9GSTg.gif" /></figure><p>And by the end of this we have reached the end of the tutorial. I hope you enjoyed it and have helped learn more about react native animations.</p><p>Here is the link of the <a href="https://github.com/ramiel1999/medium-animation-tutorial">repo </a>for refrence</p><p>Until next time…..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b2abe9fb00d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using EventEmitter to invoke callback functions between screens in react-navigation.]]></title>
            <link>https://medium.com/@itsramiel/using-eventemitter-to-invoke-callback-functions-between-screens-in-react-navigation-ccdcfc5657ff?source=rss-1efb484ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccdcfc5657ff</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Rami Elwan]]></dc:creator>
            <pubDate>Sat, 04 Jun 2022 08:46:17 GMT</pubDate>
            <atom:updated>2022-08-01T08:22:16.796Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LXYLM-qB8HhHKsslm8WPhA.png" /></figure><p>If you have ever worked on a react native project, the chances are that you used react-navigation to create the navigation flow in your application. One issue that a lot of people face is the ability to write a function in one screen and then pass it as a parameter to another screen and invoke it there. This seems like a very simple thing, but react-navigation will throw a warning because of the following reason:</p><blockquote>This can happen if you are passing non-serializable values such as class instances, functions etc. in params. React Navigation warns you in this case because this can break other functionality such <a href="https://reactnavigation.org/docs/state-persistence">state persistence</a>, <a href="https://reactnavigation.org/docs/deep-linking">deep linking</a> etc.</blockquote><p>In this tutorial I will show you how to call one function written in Screen A but invoked in Screen B without having react-navigation yelling in your face. I will be using expo and typescript, but you are free to use bare react-native and javascript if you wish.</p><p>Let me explain to you briefly the technique that will be used to achieve what we want. We will be using event emitters. Event Emitters is a popular idea in javascript and is used in nodejs a lot. We will be using Event Emitters to our benefit by setting up an event in on screen and emitting it on the other screen.</p><p>To kick things off open your terminal and enter:</p><blockquote>expo init navigation-callback</blockquote><p>then choose typescript template if you would like to follow me</p><blockquote>blank (TypeScript) same as blank but with TypeScript configuration</blockquote><p>once it is done cd into it using</p><blockquote>cd navigation-callback</blockquote><p>Once you are inside the project directory we will be adding the dependencies related to react-navigation. Enter the following in your terminal:</p><blockquote>yarn add <a href="http://twitter.com/react">@react</a>-navigation/native &amp;&amp; expo install react-native-screens react-native-safe-area-context &amp;&amp; yarn add <a href="http://twitter.com/react">@react</a>-navigation/native-stack</blockquote><p>if you are using npm:</p><blockquote>npm install <a href="http://twitter.com/react">@react</a>-navigation/native &amp;&amp; expo install react-native-screens react-native-safe-area-context &amp;&amp; npm install <a href="http://twitter.com/react">@react</a>-navigation/native-stack</blockquote><p>Now we need to create the navigation flow. We will be creating two screens: Home and Profile. To do that open up the project in your favorite ide, in my case vscode. In the root of your directory next to <em>App.tsx</em> create a <strong>screens</strong> directory and create two files inside: <em>Home.tsx</em> and <em>Profile.tsx.</em></p><p>Add the following to <em>Home.tsx</em> and <em>Profile.tsx</em> respectively:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/08e8773bcf55bb487e405d92c1b854b8/href">https://medium.com/media/08e8773bcf55bb487e405d92c1b854b8/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9dc122a39830829d85efc9422a6e223f/href">https://medium.com/media/9dc122a39830829d85efc9422a6e223f/href</a></iframe><p>Now that we have screens in place, next we need to create the navigation container. In the root of your folder next to <strong>screens </strong>create <strong>navigation </strong>folder and add the following files inside: <em>types.ts </em>and<em> index.tsx.</em></p><p>In types.ts we will be writing the types for the screens for typescript which will give us safety and autoComplete. Add the following to <em>types.ts:</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c38506c4988158f48e79ac4ad2df4c5/href">https://medium.com/media/4c38506c4988158f48e79ac4ad2df4c5/href</a></iframe><p>NavigationType tells what parameters each screen accept. For now both of them accept no paramters but for later we will change Profile.</p><p>In line 8 and 9 we extracted the types for the screens props.</p><p>Now open up index.tsx that you created previously and create the navigation flow. Enter the following inside:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/44893d5bc2be6dfb337e3b5e2438e4df/href">https://medium.com/media/44893d5bc2be6dfb337e3b5e2438e4df/href</a></iframe><p>What we did here is we used NavigationContainer to contain our Navigator with two Screens, Home and Profile.</p><p>To see the result add the following to App.tsx:</p><pre>import Navigation from &quot;./navigation&quot;;</pre><pre>export default function App() {</pre><pre>    return &lt;Navigation /&gt;;</pre><pre>}</pre><p>Basically we imported the Navigation component we created in navigation/index.ts and returning it in <em>App.tsx.</em></p><p>Now go back to your terminal and enter:</p><blockquote>expo start</blockquote><p>Once you open the application now you should be able to see your Home screen as the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*nYPnOSyPzA1fAZXMiuWaSA.jpeg" /></figure><p>Now that our app is working fine, let’s add a function in Home and try to pass it and invoke it in Profile.</p><p>First open up navigation/types.ts and change NavigationType to accept a callback:</p><pre>export type NavigationType = {</pre><pre>    Home: undefined;</pre><pre>    Profile: {callback: () =&gt; void};</pre><pre>};</pre><p>This way we said that Profile screen accepts a paramter called callback. Now let’s go back to <em>Home.tsx </em>and navigate to Profile screen while passing the callback.</p><p>Your Home.tsx should look like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/61cbfe6a3d22928c6fe330b115ec95dc/href">https://medium.com/media/61cbfe6a3d22928c6fe330b115ec95dc/href</a></iframe><p>In line 3 we imported HomeProps and used it in line 5 to de-structure navigation prop</p><p>Line 6 creates a function which is then passed to Profile Screen in line 12 when navigating.</p><p>Then edit <em>Profile.tsx </em>to be like the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bdd4c93e18ce780f5730088861dbf546/href">https://medium.com/media/bdd4c93e18ce780f5730088861dbf546/href</a></iframe><p>In line 3 we import ProfileProps which we use in line 5 to de-structure route prop. We de-structure callback, passed from Home, from route.params. Then we add a simple button that invoked this passed callback when pressed.</p><p>Running the application, navigating to Profile and pressing the button to invoke the callback function works but check the warning in your console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*wsLvQToZBn4ObWYB3Cp1MA.jpeg" /></figure><p>Well how do we fix this? It is really important sometimes to pass a function from one screen to another. Here comes EventEmitter 😎.</p><p>Go to your terminal and add the event emitter package using:</p><p>yarn:</p><blockquote>yarn add eventemitter3</blockquote><p>npm:</p><blockquote>npm install eventemitter3</blockquote><p>After adding the event emitter to our dependencies. In the root of your project next to <em>App.tsx </em>add<em> </em><strong>event </strong>folder with <em>index.ts </em>file inside.</p><p>Your folder structure should look like the following</p><pre>.<br>├── App.tsx<br>├── event<br>│   └── index.ts<br>├── navigation<br>│   ├── index.tsx<br>│   └── types.ts<br>├── screens<br>│   ├── Home.tsx<br>│   └── Profile.tsx</pre><p>Inside index.ts add the following:</p><pre>import { EventEmitter } from &quot;eventemitter3&quot;;</pre><pre>export const event = new EventEmitter();</pre><p>Basically we are creating a new EventEmitter from the EventEmitter class provided by the eventemitter3 package we installed and we are exporting it. The idea here is that we will no longer pass the callback function to Profile but instead we will create an event named “congratulateUser” and pass it our callback function. We then pass the name of the event, congratulateUser, to the Profile screen and emit the event there which will cause callback function to be invoked. Let’s see this in action.</p><p>First go to navigation/types.ts and change NavigationType so that Profile accepts string called <strong>eventName</strong> instead of <strong>callback. </strong>NavigationType should look like this:</p><pre>export type NavigationType = {</pre><pre>    Home: undefined;</pre><pre>    Profile: { eventName: string };</pre><pre>};</pre><p>Now go back to Home.tsx and let’s use this eventemitter. Your Home.tsx should look like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7b5a4a7aff4e88996a80cfcd8e45d41c/href">https://medium.com/media/7b5a4a7aff4e88996a80cfcd8e45d41c/href</a></iframe><p>Line4: import event that we created in event/index.ts</p><p>line11-line17: create an effect which adds the callback function as event with an event name the same as the function name. We return a useEffect cleanup function which removes the event when this component is unmounted.</p><p>Line 21: We pass the eventName to profile screen.</p><p>Change Profile.tsx to look like the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b0b6c4d174c28e6b979ef4cbc572e8a1/href">https://medium.com/media/b0b6c4d174c28e6b979ef4cbc572e8a1/href</a></iframe><p>Line4: import event from event/index.ts</p><p>Line7: de-structure eventName rather than callback from route.params</p><p>Line11: emit the event using the eventName parameter</p><p>Run the app again, and you will notice that you get the same exact behavior without any warnings from react-navigation 🎉🎉🎉</p><p>While we could stop here we can make this more react-like by adding a hook that returns to us the event object.</p><p>Inside the <strong>event </strong>folder add EventProvider.tsx file which makes event folder structure the following:</p><pre>event<br>├── EventProvider.tsx<br>└── index.ts</pre><p>Inside EventProvider add the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/762abbc2f6d1998f1aecbe45a8df8365/href">https://medium.com/media/762abbc2f6d1998f1aecbe45a8df8365/href</a></iframe><p>Line5: create context using React.context</p><p>Line7–9: create EventProvider which will wrap our application and be able to pass the value to any component in our app</p><p>Line13: created a custom hook which will return the event object</p><p>Now go to App.tsx and wrap the whole application with EventProvider</p><pre>import EventProvider from &quot;./event/EventProvider&quot;;</pre><pre>import Navigation from &quot;./navigation&quot;;</pre><pre>export default function App() {</pre><pre>return (</pre><pre>    &lt;EventProvider&gt;</pre><pre>        &lt;Navigation /&gt;</pre><pre>    &lt;/EventProvider&gt;</pre><pre>);</pre><pre>}</pre><p>Next inside Home.tsx we can use <strong>useEvent </strong>to retrieve the event object making Home.tsx:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0b82d782de97bb5c9d57537a67d63fe3/href">https://medium.com/media/0b82d782de97bb5c9d57537a67d63fe3/href</a></iframe><p>This way you can get hold of event object by invoking useEvent, line 7, custom hook making our code as similar to React as possible. You can do the same to <em>Profile.tsx </em>if you wish to.</p><p>What about calling callback functions with paramaters? It is as simple as passed those parameter after the eventName in event.emit(eventName, …args).</p><p>For example let’s make congratulateUser accept a name parameter and congratulate the person using his/her name.</p><pre>const congratulateUser = (name: string) =&gt; {<br>Alert.alert(`Hi ${name}, Here is a congratulations for following       this tutorial and this function is written in Home`);<br>};</pre><p>Now in <em>Profile.tsx, </em>pass the parameter as you emitting the event like such:</p><pre>&lt;Button title=&quot;call passed callback&quot; onPress={() =&gt; event.emit(eventName, &quot;rami&quot;)} /&gt;</pre><p>This brings us to the end of our tutorial 🥳 🥳 🥳. I hope you learned something new and will be able to use it in your project. I aim to write only beneficial and useful blog posts related to React Native/ Typescript. Following me and supporting me is the only way to keep me going. Thank you.💖</p><p>Here is a link to the finished project <a href="https://github.com/ramiel1999/navigation-callbacks">github repo</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccdcfc5657ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>