/react-native-diff-component

React Native Implementation of react-diff module; highlights differences between two strings, uses the diff module

Primary LanguageJavaScript

react-diff

This is a React Native implementation of react-diff-simple-component which was inspired by and updated from react-diff.

Highlights differences between two strings, uses the diff module

Installation

npm install react-native-diff-component

Demo

http://cezary.github.io/react-diff/

Example

import React from "react";
import Diff from "react-native-diff-component";

const MyComponent = () => {
  return <Diff inputA="gogol" inputB="google" type="chars" />;
};

License

MIT