Giter Club home page Giter Club logo

flipper-plugin-async-storage-advanced's Introduction

Flipper Async Storage Advanced plugin

Introduction

This plugin is designed to work with Flipper (https://fbflipper.com/) and Async Storage (https://github.com/react-native-async-storage/async-storage) library.

The plugin provides standard read/write/delete/update operations on the Async Storage keys in React Native applications.

plugin_video

Installation

Similarly to other Flipper plugins for React Native, this one comes in two packages.

Client package

The first package is a client package that has to be installed in your React Native app.

Install the package

If you haven't already installed react-native-flipper you need to do it now.

Simply run:

npm i react-native-flipper --save

Once the react-native-flipper package is installed, you can go ahead and install the actual rn-flipper-async-storage-advanced package.

npm i rn-flipper-async-storage-advanced --save

Once the package is installed, simply import it

import FlipperAsyncStorage from 'rn-flipper-async-storage-advanced';

and include the component somewhere in you main component, example below adds it inside App.js

const App: () => Node = () => {
  const isDarkMode = useColorScheme() === 'dark';

  const backgroundStyle = {
    backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
  };

  return (
    <SafeAreaView style={backgroundStyle}>
      <FlipperAsyncStorage />  <--- This line
      <TouchableOpacity
        onPress={() => {
          AsyncStorage.setItem('sads', 'das');
        }}>
        <Text>add</Text>
      </TouchableOpacity>
    </SafeAreaView>
  );
};

Flipper plugin

The second package is a plugin package that has to be installed from inside Flipper.

Open Flipper and find your plugin manager, simply search for 'flipper-plugin-async-storage-advanced' and install it.

flipper-plugin-async-storage-advanced's People

Contributors

findmory avatar lbaldy avatar zatteo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flipper-plugin-async-storage-advanced's Issues

No file found for module 'rn-flipper-async-storage-advanced declaration'

No declaration file found for module 'rn-flipper-async-storage-advanced'. 'D:/GitHub/AppDigiCSMMOVCCNay/node_modules/rn-flipper-async-storage-advanced/index.js' implicitly has type "any".
Try "npm i --save-dev @types/rn-flipper-async-storage-advanced" if it exists or add a new declaration file (.d.ts) that includes "declare module 'rn-flipper-async-storage -advanced';".ts(7016)
FlipperAsyncStorageError

I'm using React Native with Typescript.

Typescript support

Reproduce:

On importing the FlipperAsyncStorage in a file with extension .tsx

import FlipperAsyncStorage from 'rn-flipper-async-storage-advanced';

It throws an error

Could not find a declaration file for module 'rn-flipper-async-storage-advanced'. '/Users/maxios/repos/nu/nu-app/node_modules/rn-flipper-async-storage-advanced/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/rn-flipper-async-storage-advanced` if it exists or add a new declaration (.d.ts) file containing `declare module 'rn-flipper-async-storage-advanced';`ts(7016)

VSCode version: 1.80.1
Extension: ms-vscode.vscode-typescript-next (v5.2.20230727)

Temporary solution:

The error can be suppressed as follows using @ts-ignore

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore this ignore the next line as the package not supporting typescript
import FlipperAsyncStorage from 'rn-flipper-async-storage-advanced';

Proposal:

declare the module using eaither a file index.d.ts in the same package.
Or declare it in another package with name @types/rn-flipper-async-storage-advanced

'Advanced Async Storage' is not supported

Plugin 'Advanced Async Storage' is unavailable
Plugin 'Advanced Async Storage' is not supported by the selected application 'motoNative' (Android).

Без имени-1

plugin doesnt work inside flipper client (win10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.