<?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: shyam manek</title>
    <description>The latest articles on DEV Community by shyam manek (@shyammanek).</description>
    <link>https://dev.to/shyammanek</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%2F783868%2F4757f143-2b62-4525-8b81-69c7caf048fb.jpg</url>
      <title>DEV Community: shyam manek</title>
      <link>https://dev.to/shyammanek</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shyammanek"/>
    <language>en</language>
    <item>
      <title>Introduction to OneLink in AppsFlyer in React Native</title>
      <dc:creator>shyam manek</dc:creator>
      <pubDate>Mon, 07 Apr 2025 09:04:40 +0000</pubDate>
      <link>https://dev.to/shyammanek/introduction-to-onelink-in-appsflyer-in-react-native-64k</link>
      <guid>https://dev.to/shyammanek/introduction-to-onelink-in-appsflyer-in-react-native-64k</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is OneLink?&lt;/strong&gt;&lt;br&gt;
OneLink is a feature provided by AppsFlyer that simplifies the deep linking process. It creates a single link that can redirect users based on whether they have the app installed or not. If the app is installed, it opens directly; if not, it redirects to the appropriate app store or a web landing page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;br&gt;
Ensure you have the AppsFlyer SDK integrated into your React Native project.&lt;br&gt;
Use the latest version of the AppsFlyer React Native plugin.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;br&gt;
To install the AppsFlyer SDK for React Native, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install react-native-appsflyer

cd ios 
pod install

//add this to the pod file
pod 'react-native-appsflyer', :path =&amp;gt; '../node_modules/react-native-AppsFlyer'


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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Implementing Deep Linking&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Official Documentation&lt;br&gt;
&lt;a href="https://dev.appsflyer.com/hc/docs/react-native-plugin" rel="noopener noreferrer"&gt;https://dev.appsflyer.com/hc/docs/react-native-plugin&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Example App :&lt;br&gt;
&lt;a href="https://github.com/AppsFlyerSDK/appsflyer-expo-sample-app" rel="noopener noreferrer"&gt;https://github.com/AppsFlyerSDK/appsflyer-expo-sample-app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Configure OneLink&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create a OneLink Template:&lt;/strong&gt; In your AppsFlyer dashboard, navigate to Engage &amp;gt; OneLink Management and create a new OneLink template.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Set Up User Experience:&lt;/strong&gt; Choose how you want users to interact with your link (e.g., social-to-app, referral-to-app).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Add Deep Linking Settings:&lt;/strong&gt; Configure deep linking options as needed for your campaign.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Handle Incoming Links in React Native&lt;/strong&gt;&lt;br&gt;
Use the Linking module from React Native to handle incoming deep links. Here’s a basic implementation:&lt;/p&gt;

</description>
      <category>react</category>
      <category>reactnative</category>
      <category>deeplink</category>
      <category>onelink</category>
    </item>
    <item>
      <title>Firebase Dynamic link alternatives in React Native</title>
      <dc:creator>shyam manek</dc:creator>
      <pubDate>Thu, 22 Aug 2024 19:46:11 +0000</pubDate>
      <link>https://dev.to/shyammanek/firebase-dynamic-link-alternatives-in-react-native-4eon</link>
      <guid>https://dev.to/shyammanek/firebase-dynamic-link-alternatives-in-react-native-4eon</guid>
      <description>&lt;p&gt;&lt;strong&gt;Deprecated&lt;/strong&gt;: embed Firebase Dynamic Links is deprecated and should not be adopted in projects that don't already use it. The service will shut down on August 25, 2025.&lt;/p&gt;

&lt;p&gt;basic and easy configuration of deeplinking on react native using react-navigation linking&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;React-Navigation&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; Documentation 
&lt;a href="https://reactnavigation.org/docs/deep-linking/" rel="noopener noreferrer"&gt;reactnavigation.org/docs/deep-linking&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  For Android
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Configure App Links in AndroidManifest.xml&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To support App Links, you need to configure your AndroidManifest.xml to handle HTTP/HTTPS URLs:&lt;/p&gt;

&lt;p&gt;Open AndroidManifest.xml&lt;br&gt;
This file is located at android/app/src/main/AndroidManifest.xml&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Add Intent Filters&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Update the &lt;strong&gt;&lt;/strong&gt; element to include intent filters that specify the domains your app can handle:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;activity
  android:name=".MainActivity"
  android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
  android:label="@string/app_name"
  android:launchMode="singleTop"
  android:theme="@style/AppTheme"&amp;gt;

  &amp;lt;!-- Handle HTTP/HTTPS URLs --&amp;gt;
  &amp;lt;intent-filter&amp;gt;
    &amp;lt;action android:name="android.intent.action.VIEW" /&amp;gt;
    &amp;lt;category android:name="android.intent.category.DEFAULT" /&amp;gt;
    &amp;lt;category android:name="android.intent.category.BROWSABLE" /&amp;gt;
    &amp;lt;data android:scheme="https" android:host="www.yourdomain.com" /&amp;gt;
  &amp;lt;/intent-filter&amp;gt;
&amp;lt;/activity&amp;gt;


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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Create an Asset Links File&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;android requires a file hosted on your domain to verify the relationship between your app and your website. This file is called the assetlinks.json file.&lt;/p&gt;

&lt;p&gt;Create the &lt;strong&gt;assetlinks.json&lt;/strong&gt; File&lt;br&gt;
The assetlinks.json file should be created and placed in the&lt;br&gt;
 .well-known directory on your web server. The file should be accessible at &lt;a href="https://www.yourdomain.com/.well-known/assetlinks.json" rel="noopener noreferrer"&gt;https://www.yourdomain.com/.well-known/assetlinks.json&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Example content for assetlinks.json:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[
  {
    "relation": ["delegate_permission/common.handle_all_urls"],
    "target": {
      "namespace": "android_app",
      "package_name": "com.yourappname",
      "sha256_cert_fingerprints": [
        "YOUR_CERTIFICATE_FINGERPRINT"
      ]
    }
  }
]

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

&lt;/div&gt;



&lt;p&gt;"&lt;strong&gt;package_name&lt;/strong&gt;": Replace with your app’s package name (e.g., com.yourappname).&lt;br&gt;
"&lt;strong&gt;sha256_cert_fingerprints&lt;/strong&gt;": Replace with the SHA-256 fingerprint of your app’s signing certificate.&lt;/p&gt;

</description>
      <category>deeplink</category>
      <category>mobileappdev</category>
      <category>reactnative</category>
      <category>dynamiclink</category>
    </item>
    <item>
      <title>React Native Lottie Animations</title>
      <dc:creator>shyam manek</dc:creator>
      <pubDate>Tue, 07 May 2024 12:23:56 +0000</pubDate>
      <link>https://dev.to/shyammanek/react-native-lottie-animations-4ko0</link>
      <guid>https://dev.to/shyammanek/react-native-lottie-animations-4ko0</guid>
      <description>&lt;p&gt;Lottie is very light weight and easy to use with react native.&lt;br&gt;
also Lottie is good quality and one of the advanced version of &lt;strong&gt;gif&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Lottie component for React Native (iOS, Android, and Windows)&lt;/p&gt;

&lt;p&gt;Lottie is an ecosystem of libraries for parsing Adobe After Effects animations exported as JSON with bodymovin and rendering them natively!&lt;/p&gt;

&lt;p&gt;For the first time, designers can create and ship beautiful animations without an engineer painstakingly recreating it by hand.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.npmjs.com/package/lottie-react-native"&gt;Lottie  npm Package Link &lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&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, { useEffect, useRef, Animated } from 'react';
import { Animated, Easing } from 'react-native';
import LottieView from 'lottie-react-native';

const AnimatedLottieView = Animated.createAnimatedComponent(LottieView);

export default function ControllingAnimationProgress() {
  const animationProgress = useRef(new Animated.Value(0));

  useEffect(() =&amp;gt; {
    Animated.timing(animationProgress.current, {
      toValue: 1,
      duration: 5000,
      easing: Easing.linear,
      useNativeDriver: false,
    }).start();
  }, []);

  return (
    &amp;lt;AnimatedLottieView
      source={require('../path/to/animation.json')}
      progress={animationProgress.current}
    /&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can find the full list of props and methods available in our API document. These are the most common ones:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/lottie-react-native/lottie-react-native/blob/master/docs/api.md"&gt;API document For Lottie &lt;/a&gt;&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>animation</category>
      <category>lottie</category>
      <category>mobile</category>
    </item>
    <item>
      <title>create snapchat like filters using DeepAr React native</title>
      <dc:creator>shyam manek</dc:creator>
      <pubDate>Mon, 02 Oct 2023 11:48:09 +0000</pubDate>
      <link>https://dev.to/shyammanek/create-snapchat-like-filters-on-your-video-or-images-using-deepar-react-native-4hfi</link>
      <guid>https://dev.to/shyammanek/create-snapchat-like-filters-on-your-video-or-images-using-deepar-react-native-4hfi</guid>
      <description>&lt;p&gt;Create App using &lt;strong&gt;DeepAr&lt;/strong&gt; NPM Package for different Type of Filters on your Video and Images&lt;/p&gt;

&lt;h2&gt;
  
  
  DeepAr is Supported on Many Different Platforms Like Web Mobile Android iOS React Native CLI Expo CLI
&lt;/h2&gt;

&lt;p&gt;DeepAr is Paid But Also They are providing many Free Filters Like This&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.deepar.ai/deep-ar-studio/free-filter-pack/"&gt;Free Filter Packs&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Expo Project for Android need To Enable Harness.
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://www.deepar.ai/"&gt;DeepAr&lt;/a&gt; has one Grate Tool.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;wE can Create Our Customize Filters using DeepAr Creator Studio&lt;/p&gt;

&lt;p&gt;Check for Creator Studio&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.deepar.ai/creator-studio"&gt;DeepAr Creator Studio&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.buymeacoffee.com/samdm24217"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>filters</category>
      <category>videoapp</category>
      <category>mobile</category>
      <category>appdevelopment</category>
    </item>
    <item>
      <title>i need to impliment banuba on expo project</title>
      <dc:creator>shyam manek</dc:creator>
      <pubDate>Tue, 18 Jul 2023 05:34:25 +0000</pubDate>
      <link>https://dev.to/shyammanek/i-need-to-impliment-banuba-on-expo-project-1dkl</link>
      <guid>https://dev.to/shyammanek/i-need-to-impliment-banuba-on-expo-project-1dkl</guid>
      <description>&lt;p&gt;hello if anyone know about how to impliment banuba on react native expo project&lt;/p&gt;

&lt;p&gt;i want to select filters and then start video recording with selected filter.&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>banuba</category>
      <category>videofilter</category>
      <category>programming</category>
    </item>
    <item>
      <title>photos and videos important react native NPM librarys</title>
      <dc:creator>shyam manek</dc:creator>
      <pubDate>Thu, 06 Jul 2023 15:18:22 +0000</pubDate>
      <link>https://dev.to/shyammanek/photos-and-videos-important-react-native-npm-librarys-27f7</link>
      <guid>https://dev.to/shyammanek/photos-and-videos-important-react-native-npm-librarys-27f7</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/gre/react-native-view-shot"&gt;https://github.com/gre/react-native-view-shot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shopify.github.io/react-native-skia/docs/getting-started/hello-world"&gt;https://shopify.github.io/react-native-skia/docs/getting-started/hello-world&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.deepar.ai/"&gt;https://docs.deepar.ai/&lt;/a&gt; &lt;strong&gt;&amp;lt;-- PAID&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.react-native-vision-camera.com/docs/guides/frame-processor-plugin-list"&gt;https://www.react-native-vision-camera.com/docs/guides/frame-processor-plugin-list&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>software engineer interview questions specifically data structure</title>
      <dc:creator>shyam manek</dc:creator>
      <pubDate>Wed, 05 Jul 2023 18:29:43 +0000</pubDate>
      <link>https://dev.to/shyammanek/software-engineer-interview-questions-specifically-related-to-data-structure-1377</link>
      <guid>https://dev.to/shyammanek/software-engineer-interview-questions-specifically-related-to-data-structure-1377</guid>
      <description>&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Explain the concept of time complexity and space complexity. How do they relate to data structures?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What is the difference between an array and a linked list? In which scenarios would you prefer one over the other?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Describe the process of reversing a linked list. What is the time complexity of your approach?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How would you check if a given linked list contains a cycle? Provide an efficient algorithm.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What is the difference between a static array and a dynamic array? How are they implemented?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Explain the concept of a binary search and its time complexity. When is it most effective?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Describe the process of implementing a stack using an array. What are the advantages and limitations of this approach?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How would you implement a queue using two stacks? Provide an efficient implementation.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What are the basic operations and time complexities of a binary search tree? How would you traverse a binary search tree in order?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Explain the concept of a hash table and its collision resolution techniques.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How would you implement a priority queue using a binary heap? What is the time complexity of the basic operations?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Describe the process of traversing a graph using depth-first search (DFS) and breadth-first search (BFS). What are their applications?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What is a self-balancing binary search tree, such as an AVL tree or a red-black tree? Explain how it maintains balance.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How would you find the kth largest element in an unsorted array? Provide an efficient algorithm.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Explain the concept of a trie and its use cases. How would you implement a trie?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Describe the concept of dynamic programming and provide an example problem where it can be applied.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What are some common sorting algorithms, such as bubble sort, merge sort, and quicksort? Explain their time complexities and trade-offs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How would you efficiently find the median of a large dataset? Provide an algorithm with optimal time complexity.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Describe the process of finding the longest common subsequence between two strings. What is the dynamic programming approach for this problem?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Explain the concept of a skip list and its advantages over other data structures.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>datastructures</category>
      <category>interview</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Example of how you can use React Native Image Crop Picker in your React Native project</title>
      <dc:creator>shyam manek</dc:creator>
      <pubDate>Wed, 05 Jul 2023 18:25:38 +0000</pubDate>
      <link>https://dev.to/shyammanek/example-of-how-you-can-use-react-native-image-crop-picker-in-your-react-native-project-270d</link>
      <guid>https://dev.to/shyammanek/example-of-how-you-can-use-react-native-image-crop-picker-in-your-react-native-project-270d</guid>
      <description>&lt;p&gt;Install the library using npm or yarn:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install react-native-image-crop-picker

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

&lt;/div&gt;



&lt;p&gt;Link the library to your project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;react-native link react-native-image-crop-picker

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

&lt;/div&gt;



&lt;p&gt;Import the necessary modules in your component file:&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, { useState } from 'react';
import { View, Image, Button } from 'react-native';
import ImagePicker from 'react-native-image-crop-picker';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create a component that allows the user to select and crop an image:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const ImageCropPickerExample = () =&amp;gt; {
  const [selectedImage, setSelectedImage] = useState(null);

  const openImagePicker = () =&amp;gt; {
    ImagePicker.openPicker({
      width: 300,
      height: 400,
      cropping: true,
    }).then(image =&amp;gt; {
      setSelectedImage(image.path);
    }).catch(error =&amp;gt; {
      console.log('Error:', error);
    });
  };

  return (
    &amp;lt;View&amp;gt;
      &amp;lt;Button title="Select Image" onPress={openImagePicker} /&amp;gt;

      {selectedImage &amp;amp;&amp;amp; (
        &amp;lt;View&amp;gt;
          &amp;lt;Image source={{ uri: selectedImage }} style={{ width: 200, height: 200 }} /&amp;gt;
        &amp;lt;/View&amp;gt;
      )}
    &amp;lt;/View&amp;gt;
  );
};

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

&lt;/div&gt;



&lt;p&gt;In this example, we have a component called ImageCropPickerExample that renders a button to open the image picker. When the user selects an image and crops it, the selected image's path is stored in the component's state (selectedImage). The cropped image is then displayed using the Image component.&lt;/p&gt;

&lt;p&gt;Please note that this is a basic example, and you can customize the options passed to ImagePicker.openPicker() based on your specific requirements. You can refer to the library's documentation for additional options and functionalities.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>how you can use react-native-fs (rnfs) to download a file in React Native</title>
      <dc:creator>shyam manek</dc:creator>
      <pubDate>Wed, 05 Jul 2023 18:21:03 +0000</pubDate>
      <link>https://dev.to/shyammanek/how-you-can-use-react-native-fs-rnfs-to-download-a-file-in-react-native-1c9</link>
      <guid>https://dev.to/shyammanek/how-you-can-use-react-native-fs-rnfs-to-download-a-file-in-react-native-1c9</guid>
      <description>&lt;p&gt;Step 1: Install the dependency&lt;/p&gt;

&lt;p&gt;If you haven't already, install react-native-fs by running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install react-native-fs

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

&lt;/div&gt;



&lt;p&gt;Step 2: Link the dependency&lt;/p&gt;

&lt;p&gt;Link the react-native-fs package to your project&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx react-native link react-native-fs

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

&lt;/div&gt;



&lt;p&gt;Step 3: Download a file&lt;/p&gt;

&lt;p&gt;You can use the downloadFile method from react-native-fs to download a file. Here's an example:&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, { useEffect } from 'react';
import { View, Button } from 'react-native';
import RNFS from 'react-native-fs';

const FileDownloadScreen = () =&amp;gt; {
  useEffect(() =&amp;gt; {
    // Optional: Delete the file if it exists before downloading
    const filePath = RNFS.DocumentDirectoryPath + '/example.pdf';
    RNFS.unlink(filePath)
      .then(() =&amp;gt; {
        console.log('Previous file deleted');
      })
      .catch((err) =&amp;gt; {
        console.log(err.message);
      });
  }, []);

  const downloadFile = () =&amp;gt; {
    const url = 'https://www.example.com/example.pdf';
    const filePath = RNFS.DocumentDirectoryPath + '/example.pdf';

    RNFS.downloadFile({
      fromUrl: url,
      toFile: filePath,
      background: true, // Enable downloading in the background (iOS only)
      discretionary: true, // Allow the OS to control the timing and speed (iOS only)
      progress: (res) =&amp;gt; {
        // Handle download progress updates if needed
        const progress = (res.bytesWritten / res.contentLength) * 100;
        console.log(`Progress: ${progress.toFixed(2)}%`);
      },
    })
      .promise.then((response) =&amp;gt; {
        console.log('File downloaded!', response);
      })
      .catch((err) =&amp;gt; {
        console.log('Download error:', err);
      });
  };

  return (
    &amp;lt;View&amp;gt;
      &amp;lt;Button title="Download File" onPress={downloadFile} /&amp;gt;
    &amp;lt;/View&amp;gt;
  );
};

export default FileDownloadScreen;

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

&lt;/div&gt;



&lt;p&gt;In this example, we first delete any existing file with the same name (example.pdf) if it exists. Then, when the "Download File" button is pressed, the downloadFile function is called. It uses RNFS.downloadFile to initiate the download process. The fromUrl property specifies the URL of the file to download, and the toFile property specifies the path where the downloaded file will be saved.&lt;/p&gt;

&lt;p&gt;You can also track the download progress by providing a progress callback to the RNFS.downloadFile method. The callback receives an object with the bytesWritten and contentLength properties, which can be used to calculate and display the download progress.&lt;/p&gt;

&lt;p&gt;Remember to replace '&lt;a href="https://www.example.com/example.pdf"&gt;https://www.example.com/example.pdf&lt;/a&gt;' with the actual URL of the file you want to download.&lt;/p&gt;

&lt;p&gt;That's it! With this example, you can download files using react-native-fs in your React Native app.&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>react</category>
      <category>android</category>
      <category>ios</category>
    </item>
    <item>
      <title>React Native Vision Camera library to capture and record videos</title>
      <dc:creator>shyam manek</dc:creator>
      <pubDate>Wed, 05 Jul 2023 18:17:57 +0000</pubDate>
      <link>https://dev.to/shyammanek/react-native-vision-camera-library-to-capture-and-record-videos-1ioi</link>
      <guid>https://dev.to/shyammanek/react-native-vision-camera-library-to-capture-and-record-videos-1ioi</guid>
      <description>&lt;p&gt;Step 1: Create a new React Native project&lt;/p&gt;

&lt;p&gt;Run the following command to create a new React Native project:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx react-native init VisionCameraExample&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Step 2: Install dependencies&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm install react-native-vision-camera react-native-video react-native-fs react-native-permissions&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Step 3: Link the dependencies&lt;/p&gt;

&lt;p&gt;Link the installed dependencies to your project&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx react-native link react-native-video
npx react-native link react-native-fs
npx react-native link react-native-permissions

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

&lt;/div&gt;



&lt;p&gt;Step 4: Update AndroidManifest.xml&lt;/p&gt;

&lt;p&gt;Open android/app/src/main/AndroidManifest.xml and add the following permissions&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;uses-permission android:name="android.permission.CAMERA" /&amp;gt;&lt;br&gt;
&amp;lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&amp;gt;&lt;br&gt;
&amp;lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&amp;gt;&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Step 5: Create a CameraScreen component&lt;/p&gt;

&lt;p&gt;Create a new file called CameraScreen.js in the src directory with the following code&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, { useState, useRef } from 'react';
import {
  View,
  TouchableOpacity,
  Text,
  StyleSheet
} from 'react-native';
import { Camera, FileSystem, Permissions } from 'react-native-vision-camera';
import Video from 'react-native-video';

const CameraScreen = () =&amp;gt; {
  const [isRecording, setIsRecording] = useState(false);
  const [videoPath, setVideoPath] = useState('');
  const cameraRef = useRef();

  const startRecording = async () =&amp;gt; {
    const hasPermission = await requestCameraPermission();
    if (!hasPermission) return;

    setIsRecording(true);

    const videoPath = `${FileSystem.cacheDirectory}/video.mp4`;
    setVideoPath(videoPath);

    cameraRef.current.startRecording({
      quality: '720p',
      videoBitrate: 2000000,
      maxDuration: 10, // Set the maximum duration in seconds (optional)
      maxFileSize: 100 * 1024 * 1024, // Set the maximum file size in bytes (optional)
      outputPath: videoPath,
    });
  };

  const stopRecording = async () =&amp;gt; {
    setIsRecording(false);
    await cameraRef.current.stopRecording();
  };

  const requestCameraPermission = async () =&amp;gt; {
    const { status } = await Permissions.requestMultiple([
      Permissions.PERMISSIONS.ANDROID.CAMERA,
      Permissions.PERMISSIONS.ANDROID.RECORD_AUDIO,
      Permissions.PERMISSIONS.ANDROID.WRITE_EXTERNAL_STORAGE,
    ]);
    return (
      status[Permissions.PERMISSIONS.ANDROID.CAMERA] === 'granted' &amp;amp;&amp;amp;
      status[Permissions.PERMISSIONS.ANDROID.RECORD_AUDIO] === 'granted' &amp;amp;&amp;amp;
      status[Permissions.PERMISSIONS.ANDROID.WRITE_EXTERNAL_STORAGE] === 'granted'
    );
  };

  return (
    &amp;lt;View style={styles.container}&amp;gt;
      &amp;lt;Camera style={styles.camera} ref={cameraRef} /&amp;gt;

      {isRecording ? (
        &amp;lt;TouchableOpacity style={styles.recordButton} onPress={stopRecording}&amp;gt;
          &amp;lt;Text style={styles.recordButtonText}&amp;gt;Stop Recording&amp;lt;/Text&amp;gt;
        &amp;lt;/TouchableOpacity&amp;gt;
      ) : (
        &amp;lt;TouchableOpacity style={styles.recordButton} onPress={startRecording}&amp;gt;
          &amp;lt;Text style={styles.recordButtonText}&amp;gt;Start Recording&amp;lt;/Text&amp;gt;
        &amp;lt;/TouchableOpacity&amp;gt;
      )}

      {videoPath !== '' &amp;amp;&amp;amp; (
        &amp;lt;View style={styles.videoPlayer}&amp;gt;
          &amp;lt;Video source={{ uri: videoPath }} style={styles.videoPlayer} controls /&amp;gt;
        &amp;lt;/View&amp;gt;
      )}
    &amp;lt;/View&amp;gt;
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#000',
  },
  camera: {
    flex: 1,
  },
  recordButton: {
    position: 'absolute',
    bottom: 20,
    left: 20,
    right: 20,
    backgroundColor: 'red',
    padding: 20,
    alignItems: 'center',
  },
  recordButtonText: {
    fontSize: 18,
    color: '#fff',
  },
  videoPlayer: {
    flex: 1,
    marginTop: 20,
  },
});

export default CameraScreen;

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

&lt;/div&gt;



&lt;p&gt;Step 6: Update App.js&lt;/p&gt;

&lt;p&gt;Replace the contents of App.js with the following code:&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 from 'react';
import CameraScreen from './src/CameraScreen';

const App = () =&amp;gt; {
  return &amp;lt;CameraScreen /&amp;gt;;
};

export default App;

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

&lt;/div&gt;



&lt;p&gt;Step 7: Run the app&lt;/p&gt;

&lt;p&gt;Connect your device or start an emulator, then run the following command to start the app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx react-native run-android

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

&lt;/div&gt;



&lt;p&gt;Make sure your device has the necessary permissions granted for the app to access the camera, record audio, and write to external storage.&lt;/p&gt;

&lt;p&gt;The app should now open and display a camera preview. Press the "Start Recording" button to start recording a video, and press "Stop Recording" to stop. The recorded video will be displayed below the camera preview.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>reactnative</category>
      <category>android</category>
      <category>mobile</category>
    </item>
    <item>
      <title>2 year experienced software engineer in India Top company's should Work</title>
      <dc:creator>shyam manek</dc:creator>
      <pubDate>Fri, 03 Mar 2023 20:13:13 +0000</pubDate>
      <link>https://dev.to/shyammanek/2-year-experienced-software-engineer-in-india-top-companys-should-work-4aj4</link>
      <guid>https://dev.to/shyammanek/2-year-experienced-software-engineer-in-india-top-companys-should-work-4aj4</guid>
      <description>&lt;p&gt;There are several top companies in Bangalore where you could land a high level salary job. Here are some of the top companies in Bangalore:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Amazon&lt;/li&gt;
&lt;li&gt;Google&lt;/li&gt;
&lt;li&gt;Microsoft&lt;/li&gt;
&lt;li&gt;IBM&lt;/li&gt;
&lt;li&gt;Cisco Systems&lt;/li&gt;
&lt;li&gt;Intel Corporation&lt;/li&gt;
&lt;li&gt;Accenture&lt;/li&gt;
&lt;li&gt;Wipro Limited&lt;/li&gt;
&lt;li&gt;Infosys Limited&lt;/li&gt;
&lt;li&gt;TCS (Tata Consultancy Services)&lt;/li&gt;
&lt;li&gt;NAVI&lt;/li&gt;
&lt;li&gt;SLICE&lt;/li&gt;
&lt;li&gt;VAHAK&lt;/li&gt;
&lt;li&gt;VEDANTU&lt;/li&gt;
&lt;li&gt;WALMART&lt;/li&gt;
&lt;li&gt;EY&lt;/li&gt;
&lt;li&gt;PWC&lt;/li&gt;
&lt;li&gt;LTI Mindtree&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GO these companies Website create career Profile and apply relevant Opportunities.&lt;/p&gt;

&lt;p&gt;Attached Resume + Cover Latter&lt;/p&gt;

&lt;p&gt;These companies have a reputation for offering competitive salaries and benefits packages to their employees. In order to land a high level salary job, you will need to have a strong technical skill set and a proven track record of success in your previous roles. Additionally, it can be helpful to have experience working with specific technologies or programming languages that are in high demand in the industry. It's also important to network and connect with professionals in your field, as this can help you discover new job opportunities and make valuable connections that can help you advance your career.&lt;/p&gt;

</description>
      <category>watercooler</category>
    </item>
    <item>
      <title>Create a video in just a few minutes without recording</title>
      <dc:creator>shyam manek</dc:creator>
      <pubDate>Fri, 03 Mar 2023 19:58:20 +0000</pubDate>
      <link>https://dev.to/shyammanek/create-a-video-in-just-a-few-minutes-without-recording-55gn</link>
      <guid>https://dev.to/shyammanek/create-a-video-in-just-a-few-minutes-without-recording-55gn</guid>
      <description>&lt;p&gt;here we have one website to past your video script and this will generate your video form your script content&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pictory.ai" rel="noopener noreferrer"&gt;https://pictory.ai&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>react</category>
      <category>php</category>
      <category>freelancing</category>
    </item>
  </channel>
</rss>
