पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv1.0.0

async_storage_reader

React Native ऐप्स से AsyncStorage डेटा को पढ़ने के लिए Flutter पैकेज, Flutter में माइग्रेशन के दौरान डेटा खोने से बचाता है।

AndroidiOS
30-दिन डाउनलोड
209
लाइक
33
Pub अंक
150

पैकेज इंस्टॉल करें

flutter pub add async_storage_reader

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक फ्लटर पैकेज जो रिएक्ट नेटिव के एसिंक स्टोरेज में संग्रहीत डेटा को पढ़ने के लिए डिज़ाइन किया गया है, जिससे रिएक्ट नेटिव ऐप्स से फ्लटर में डेटा के स्थानांतरण को बिना किसी दिक्कत के किया जा सकता है। यह पैकेज अनुकूलित कीव-वैल्यू जोड़ियों को बिना मौजूदा स्टोरेज लॉजिक में कोई बदलाव किए एक्सेस करने का आसान तरीका प्रदान करता है। ऐप संक्रमण के दौरान जब उपयोगकर्ता डेटा को बरकरार रखना महत्वपूर्ण होता है, तो यह विशेष रूप से उपयोगी होता है। यह एंड्रॉइड और आईओएस दोनों प्लेटफॉर्म का समर्थन करता है, जिससे व्यापक संगतता सुनिश्चित होती है। मूल फ़ाइल सिस्टम एक्सेस का उपयोग करके, यह डेटा को सुरक्षित रूप से निकालता है और इंटीग्रिटी को बनाए रखता है।

उपयोग

  • React Native से Flutter में डेटा को पुनर्स्थापित करना
  • एप्लिकेशन संक्रमण के दौरान उपयोगकर्ता पसंद को बनाए रखना
  • पुराने AsyncStorage फ़ाइल्स को पढ़ना
  • हाइब्रिड ऐप विकास चरणों का समर्थन करना
  • फ्रेमवर्क के बीच डेटा पोर्टेबिलिटी सक्षम करना

मुख्य विशेषताएँ

  • AsyncStorage JSON फ़ाइल्स पढ़ता है
  • क्रॉस-प्लेटफॉर्म (Android और iOS)
  • आवश्यक सेटअप न्यूनतम
  • सुरक्षित डेटा निकासी
  • React Native के भंडारण प्रारूप के साथ सुसंगत

इनके लिए उपयुक्त

  • React Native से Flutter में प्रवर्तित विकासकर्मी
  • एप्प ट्रांजिशन का प्रबंधन करने वाली टीमें
  • डेटा निरंतरता की आवश्यकता वाले प्रोजेक्ट
  • हाइब्रिड ऐप रखरखाव
  • डेटा रिकवरी परिदृश्य

विचार योग्य बातें

  • केवल डेटा पढ़ता है — लिखता नहीं है
  • सही फ़ाइल पथ पहुंच की आवश्यकता है
  • वास्तविक समय सिंक के लिए नहीं
  • AsyncStorage प्रारूप तक सीमित
  • एन्क्रिप्शन का समर्थन नहीं करता है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Migrate Local Data from React Native to Flutter - async_storage_reader

A Flutter package created to assist in migrating data from a React Native app by accessing and reading AsyncStorage for Android and iOS. It allows reading of AsyncStorage data from react native app, like user session tokens, preferences, other configurations, and cached data are preserved without logging out or data loss during migration to a new Flutter app.

Note: Please ensure that both the React Native and Flutter apps have the same bundle ID (for iOS) and application ID (for Android).

Why This Package?

When migrating from React Native to Flutter, one of the most significant challenges is ensuring that existing data stored in the app is preserved. This could include user session tokens, settings, cached preferences, or any other key-value pairs that were previously stored using React Native's AsyncStorage. Without this, users might lose their preferences or be logged out. This package solves the problem by offering an easy way to access all AsyncStorage in your new Flutter app.

Demo Preview

Demo Preview

Platform Support for async_storage_reader

The async_storage_reader package provides support for both Android and iOS platforms.

Features

  • Read individual key-value pairs from React Native's AsyncStorage.
  • Retrieve all key-value pairs stored in AsyncStorage.
  • Support for both Android and iOS platforms.
  • Prevent user logouts during app migrations by retrieving session tokens or other vital data.
  • Provides methods to read, remove, and clear storage data.

Getting Started

To use this package, add async_storage_reader as a dependency in your pubspec.yaml file:

dependencies:
  async_storage_reader: ^1.0.0

Example Usage

import 'package:async_storage_reader/async_storage_reader.dart';

final reader = AsyncStorageReader();

String? value = await reader.getItem('your_key');
print(value);  

Map<String, String> allItems = await reader.getAllItems();
print(allItems);  

bool success = await reader.removeItem('your_key');
print(success);  

bool success = await reader.clear();
print(success);  

License

This project is licensed under the MIT License - see the LICENSE file for details.

Connect With Me

GitHub: bilalrehman08 Linkedin: bilalrehman08 [YouTube: Bilal Rehman][youtube] Instagram: bilalrehman08 [Gmail: bilalrehman080808@gmail.com][gmail]

[gmail]: mailto:bilalrehman080808@gmail.com [youtube]: https://www.youtube.com/@bilalrehman08 [license]: https://github.com/BilalRehman08/Async-Storage-Reader/blob/main/LICENSE

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 3 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।