All Projects → cawfree → react-native-blobular

cawfree / react-native-blobular

Licence: MIT license
The Man in Blue's awesome Blobular, ported to React Native.

Programming Languages

javascript
184084 projects - #8 most used programming language
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language
python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to react-native-blobular

Granim.js
Create fluid and interactive gradient animations with this small javascript library.
Stars: ✭ 4,825 (+9003.77%)
Mutual labels:  fluid
Webgl Fluid Simulation
Play with fluids in your browser (works even on mobile)
Stars: ✭ 11,621 (+21826.42%)
Mutual labels:  fluid
Expressionevaluator
A Simple Math and Pseudo C# Expression Evaluator in One C# File. Can also execute small C# like scripts
Stars: ✭ 194 (+266.04%)
Mutual labels:  fluid
Su2
SU2: An Open-Source Suite for Multiphysics Simulation and Design
Stars: ✭ 731 (+1279.25%)
Mutual labels:  fluid
Fluidcontent
TYPO3 extension Fluidcontent: Fluid Content Element Engine
Stars: ✭ 82 (+54.72%)
Mutual labels:  fluid
Aphros
Finite volume solver for incompressible multiphase flows with surface tension
Stars: ✭ 154 (+190.57%)
Mutual labels:  fluid
Pbd Fluid In Unity
A PBD fluid in unity running on the GPU
Stars: ✭ 350 (+560.38%)
Mutual labels:  fluid
Hexo Theme Fluid
🌊 一款 Material Design 风格的 Hexo 主题 / An elegant Material-Design theme for Hexo
Stars: ✭ 3,700 (+6881.13%)
Mutual labels:  fluid
Fluid System
Fluid System is a style props function transformer for generating fluid styles. 💦
Stars: ✭ 130 (+145.28%)
Mutual labels:  fluid
Fltkhs
Haskell bindings to FLTK GUI toolkit.
Stars: ✭ 187 (+252.83%)
Mutual labels:  fluid
Ason
[DEPRECATED]: Prefer Moshi, Jackson, Gson, or LoganSquare
Stars: ✭ 777 (+1366.04%)
Mutual labels:  fluid
Blender Flip Fluids
FLIP Fluids is a powerful liquid simulation plugin that gives you the ability to create high quality fluid effects all within Blender, the free and open source 3D creation suite.
Stars: ✭ 983 (+1754.72%)
Mutual labels:  fluid
Vhs
TYPO3 extension VHS: Fluid ViewHelpers
Stars: ✭ 172 (+224.53%)
Mutual labels:  fluid
Textblock
Continuously responsive typesetting — Demo:
Stars: ✭ 536 (+911.32%)
Mutual labels:  fluid
Nek5000
our classic
Stars: ✭ 219 (+313.21%)
Mutual labels:  fluid
Tutoshowcase
A simple and Elegant Showcase view for Android
Stars: ✭ 499 (+841.51%)
Mutual labels:  fluid
Oneflow
LargeScale Multiphysics Scientific Simulation Environment-OneFLOW CFD
Stars: ✭ 150 (+183.02%)
Mutual labels:  fluid
Fluid
Modern, Stylish, Easier and Powerful Css framework for faster and hassle free web development
Stars: ✭ 24 (-54.72%)
Mutual labels:  fluid
Fluid Interfaces
Natural gestures and animations inspired by Apple's WWDC18 talk "Designing Fluid Interfaces"
Stars: ✭ 2,487 (+4592.45%)
Mutual labels:  fluid
Cape
Dynamically generates Capistrano recipes for Rake tasks
Stars: ✭ 178 (+235.85%)
Mutual labels:  fluid

react-native-blobular

The Man in Blue's awesome Blobular, ported to React Native. Find the original experiment here!

🚀 Getting Started

Using npm:

npm install --save react-native-blobular

Using yarn:

yarn add react-native-blobular

This project depends on react-native-svg, so be sure that the library has been linked if you're running anything less than [email protected].

✍️ Example

It's pretty simple, just embed a <Blobular /> inside your render method, then listen for the onBlobular callback, where you can allocate a number of Blobs for your user to play around with.

import React from 'react';
import { Dimensions } from 'react-native';
import uuidv4 from 'uuid/v4';

import Blobular, { Blob } from 'react-native-blobular';

const { width, height } = Dimensions
  .get('window');

export default () => (
  <Blobular
    onBlobular={({ putBlob }) => putBlob(
      new Blob(
        uuidv4(), // unique id
        100, // radius
        75, // viscosity
        50, // min radius
      ),
      width * 0.5,
      height * 0.5,
    )}
  />
);

You can also suppress user interaction by supplying pointerEvents="none" to your <Blobular /> component, and instead use the blobular instance returned in the callback to programmatically manipulate what's on screen.

📌 Props

Property Type Required Description
width number no Width of the view.
height number no Height of the view.
renderBlob func no A function you can pass to define the SVG path.
pointerEvents string no Allow the user to interact, or manipulate programmatically.
onBlobular func no A callback returning you with a blobular instance.
onBlobCreated func no A callback for when a new blob has been generated.
onBlobDeleted func no A callback for when an existing blob has been removed.

✌️ License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].