1.2.2 • Published 4 months ago

react-native-boundary-imagepixel v1.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

react-native-boundary-imagepixel

This library is an npm library that converts images from native to pixel images.

Installation

npm install react-native-imagepixel

The solution is implemented in JavaScript and does not require a default module link.

Usage

In addition to developing expo with Android and iOS, this library also requires additional platform settings to run expo on the web.

import React from 'react';
import { View, StyleSheet, Platform, Image } from 'react-native';
import DotImageRenderer from 'react-native-boundary-imagepixel';

export default function App() {
  const imageSource = require('./assets/test.png'); 

  return (
    <View style={styles.container}>
      <DotImageRenderer
        // Use 'uri' for expo web and local image path as 'require' for native environment. 
        imageUri={Platform.OS === 'web' ? imageSource.uri : imageSource}
        blockSize={10}
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
  },
});

You try this library

If you want to test it in this repository

git clone https://github.com/Boundary-org/react-native-boundary-imagepixel.git
cd imagepixel-test
npm install
npx expo start

Test Image

LICENSE

MIT © siniseong, Inc.

1.2.2

4 months ago

1.2.0

4 months ago

1.1.9

4 months ago

1.1.8

4 months ago

1.1.7

4 months ago

1.1.6

4 months ago

1.1.5

5 months ago

1.1.4

5 months ago

1.1.3

5 months ago

1.1.2

5 months ago

1.1.0

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago