Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed animatedValue setValue undefined #45

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 25 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

## Installation

Install `rn-bottom-drawer`.
Install `react-native-bottom-drawer-view`.

```
npm install rn-bottom-drawer --save
npm install react-native-bottom-drawer-view --save
```

## Usage Example
Expand All @@ -25,29 +25,29 @@ npm install rn-bottom-drawer --save
```javascript
import React from 'react';
import { View, Text } from 'react-native';
import BottomDrawer from 'rn-bottom-drawer';
import BottomDrawer from 'react-native-bottom-drawer-view';

const TAB_BAR_HEIGHT = 49;

export default class App extends React.Component {
renderContent = () => {
return (
<View>
<Text>Get directions to your location</Text>
</View>
)
}
renderContent = () => {
return (
<View>
<Text>Get directions to your location</Text>
</View>
)
}

render() {
return (
<BottomDrawer
containerHeight={100}
offset={TAB_BAR_HEIGHT}
>
{this.renderContent()}
</BottomDrawer>
)
}
render() {
return (
<BottomDrawer
containerHeight={100}
offset={TAB_BAR_HEIGHT}
>
{this.renderContent()}
</BottomDrawer>
)
}
}

```
Expand All @@ -66,6 +66,11 @@ export default class App extends React.Component {
| shadow | bool | true | if **true**, the top of the drawer will have a shadow. |
| onExpanded | func | -- | A callback function triggered when the drawer is swiped into up position |
| onCollapsed | func | -- | A callback function triggered when the drawer is swiped into down position |
| borderRadius | number | 0 |A number of border radius |
| borderBottomLeftRadius | number | 0 | A number of bottom left border radius |
| borderBottomRightRadius | number | 0 | A number of bottom right border radius |
| borderTopLeftRadius | number | 0 | A number of top left border radius |
| borderTopRightRadius | number | 0 | A number of top right border radius |

### Questions?
Feel free to contact me at [[email protected]](mailto:[email protected]) or [create an issue](https://github.com/jacklein/rn-bottom-drawer/issues/new)
45 changes: 32 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "rn-bottom-drawer",
"version": "1.4.3",
"name": "react-native-bottom-drawer-view",
"version": "1.0.2",
"description": "a bottom drawer component for react native",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jacklein/rn-bottom-drawer.git"
"url": "git+https://github.com/jynlele/rn-bottom-drawer.git"
},
"keywords": [
"react-native",
Expand All @@ -17,15 +17,18 @@
"author": "Jack K",
"license": "ISC",
"bugs": {
"url": "https://github.com/jacklein/rn-bottom-drawer/issues"
"url": "https://github.com/jynlele/rn-bottom-drawer/"
},
"homepage": "https://github.com/jacklein/rn-bottom-drawer#readme",
"homepage": "https://github.com/jynlele/rn-bottom-drawer/blob/master/README.md",
"dependencies": {
"prop-types": "^15.6.2"
},
"devDependencies": {
"metro-react-native-babel-preset": "^0.51.0",
"react": "^16.6.3",
"react-native": "^0.57.8"
},
"directories": {
"example": "example"
}
}
Loading