Skip to content

Commit

Permalink
docs: rename package imports
Browse files Browse the repository at this point in the history
  • Loading branch information
osdnk committed Sep 16, 2020
1 parent 67b478e commit 45d77b8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Example/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
'prop-types': './node_modules/prop-types',
'react': './node_modules/react',
'react-native': './node_modules/react-native',
'react-native-animated-charts': './../src',
'@rainbow-me/animated-charts': './../src',
'react-native-gesture-handler':
'./node_modules/react-native-gesture-handler',
'react-native-haptic-feedback':
Expand Down
2 changes: 1 addition & 1 deletion Example/src/BasicExample/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
ChartPath,
ChartPathProvider,
monotoneCubicInterpolation,
} from 'react-native-animated-charts';
} from '@rainbow-me/animated-charts';

export const {width: SIZE} = Dimensions.get('window');

Expand Down
2 changes: 1 addition & 1 deletion Example/src/GenericExample/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
ChartYLabel,
monotoneCubicInterpolation,
simplifyData,
} from 'react-native-animated-charts';
} from '@rainbow-me/animated-charts';

export const {width: SIZE} = Dimensions.get('window');

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The library has been designed to provide as much flexibility as possible with th
```jsx
import React from 'react';
import {Dimensions, View} from 'react-native';
import {ChartDot, ChartPath, ChartPathProvider, monotoneCubicInterpolation} from 'react-native-animated-charts';
import {ChartDot, ChartPath, ChartPathProvider, monotoneCubicInterpolation} from '@rainbow-me/animated-charts';

export const {width: SIZE} = Dimensions.get('window');

Expand Down Expand Up @@ -175,8 +175,8 @@ It's not essential in the library, but we have decided to include a lot of helpe
## Interpolations
We have two interpolators which share the most of the API: `bSplineInterpolation` and `monotoneCubicInterpolation`.
```js
import { bSplineInterpolation as interpolator } from 'react-native-animated-charts';
// import { monotoneCubicInterpolation as interpolator } from 'react-native-animated-charts';
import { bSplineInterpolation as interpolator } from '@rainbow-me/animated-charts';
// import { monotoneCubicInterpolation as interpolator } from '@rainbow-me/animated-charts';

const interpolatedData = interpolator(data)(80, true, false);
```
Expand Down

0 comments on commit 45d77b8

Please sign in to comment.