open-index/open-npm huggingface dataset:
npm package: @khanshamshad32/carousel
Description: Created by Shamshad Khan on 14/03/2020. Copyright © 2020 Shamshad Khan. All rights reserved.
Author: Shamshad
Latest version: 1.0.1
Deprecated: false

# @khanshamshad32/carousel

A react native library for android and iOS.


## Install

`$ npm install @khanshamshad32/carousel`


## Usage

    import Carousel from '@khanshamshad32/carousel';

    const dataSource = [
      {url: '', color: '#FE0404'},
      {url: '', color: '#522A73'},
      {url: '', color: '#008200'},
      {url: '', color: '#034223'},
      {url: '', color: '#015280'},
    ];

    return (
        <View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}>
           <Carousel
           dataSource={dataSource}
           onItemPress={item => {
             console.log(item);
           }}
           containerDim={{height: 200, width: 350}}
           itemDim={{width: 100, height: 110}}
           radius={100}
           />
        </View>
    );




# Demo

![](Carousel.gif)
npm package: @khanshamshad32/image-view
Description: React Native library to display image with pinch zoom
Author: Shamshad
Latest version: 1.0.2

# @khanshamshad32/image-view

React Native library to display image with pinch zoom for android and iOS.

## Install

`$ npm install @khanshamshad32/image-view`

## Usage

    import React from "react";
    import ImageView from "@khanshamshad32/image-view";
    import { StyleSheet, FlatList } from "react-native";

    const Example = () => {
        const renderItem = ({ item }) => {
            return (
                <ImageView
                    style={styles.imageStyle}
                    source={{ uri: `https://i.picsum.photos/id/${item}/300/200.jpg` }}
                    onZoomBegin={() => console.log("On Zoom begin")}
                    onZoomEnd={() => console.log("On Zoom End")}
                />
            );
        };
        return (
            <FlatList
                style={styles.containerStyle}
                data={[1074, 1025, 1020, 1003, 1062]}
                renderItem={renderItem}
                keyExtractor={(item) => `${item}`}
            />
        );
    };

    const styles = StyleSheet.create({
        containerStyle: {
            margin: 20,
        },
        imageStyle: {
            height: 200,
            width: 300,
            backgroundColor: "#000",
            margin: 10,
        },
    });

    export default Example;

# Demo

![](demo.gif)
npm package: @khantsithu/expo-settings
Description: Build A Native Module Using Expo Modules API
Author: Khant Si Thu
Latest version: 0.1.4

# @khantsithu/expo-settings

It is a native module developed in accordance with the official Expo tutorial and tested with Expo Modules API 1.0: JSI & Fabric native modules with idiomatic Swift & Kotlin API..

[Expo Tutorial: Creating a native module](https://docs.expo.dev/modules/native-module-tutorial/)


### Add the package to your npm dependencies

npm
```
npm install @khantsithu/expo-settings
```
or

Yarn
```
yarn add @khantsithu/expo-settings
```

### Configure for Expo

Expo-Settings likely requires Expo SDK 46+.

```sh
expo install expo-build-properties
```
Add the `expo-build-properties` plugin to your `app.json`/`app.config.js`,
setting the deployment target to `13.0` (or higher):

```js
export default {
  plugins: [
    [
      "expo-build-properties",
      {
        ios: {
          deploymentTarget: "13.0",
        },
      },
    ],
  ],
};
```

Then, you'll need to rebuild your dev client. Expo-Settings will not work in Expo Go.

```sh
npx expo prebuild --clean
npx expo run:ios
```
### Configure for Plain React Native

You must install expo-modules if they are not already installed.

```sh
npx install-expo-modules
```

and

```sh
cd ios
pod install
```

### Usage and Example Code
```tsx
import * as Settings from 'expo-settings';
import * as React from 'react';
import { Button, Text, View } from 'react-native';

export default function App() {
  const [theme, setTheme] = React.useState<string>(Settings.getTheme());

  React.useEffect(() => {
    const subscription = Settings.addThemeListener(({ theme: newTheme }) => {
      setTheme(newTheme);
    });
   
    return () => subscription.remove();
  }, [setTheme]);

  // Toggle between dark and light theme
  const nextTheme = theme === 'dark' ? 'light' : 'dark';

  return (
    <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
      <Text>Theme: {Settings.getTheme()}</Text>
      <Button title={`Set theme to ${nextTheme}`} onPress={() => Settings.setTheme(nextTheme)} />
    </View>
  );
}
```

## Contribute

```sh
yarn build
cd example
npx expo run:ios # do this again whenever you change native code
```

You can edit the iOS files in `ios/`, and then update the JS accordingly in
`src`.

## Thanks
Special thanks to [Fernando Rojo](https://twitter.com/FernandoTheRojo) for the Twitter thread, as well as the Expo Team for developing the Expo Modules API.

Expo Modules made this so easy to build, and all with Swift and Kotlin
npm package: @khaooz/sdk
Description: 🛠 An SDK for building applications on top of KhaosSwap.
Latest version: 2.4.3

# KhaosSwap SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://docs.uniswap.org/sdk/2.0.0/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancake-swap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @khaos-finance/sdk
Description: 🛠 An SDK for building applications on top of khaos.
Latest version: 2.4.7

# Pancakeswap SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/rehanmunir259/khaos-finance-sdk.git
```