react-native-simple-expand
Version:
Simple expandable view with extendable animations
94 lines (93 loc) • 3.74 kB
JSON
{
"_args": [
[
{
"raw": "react-native-simple-expand@^0.1.2",
"scope": null,
"escapedName": "react-native-simple-expand",
"name": "react-native-simple-expand",
"rawSpec": "^0.1.2",
"spec": ">=0.1.2 <0.2.0",
"type": "range"
},
"/Users/kylejohnson/accaapp-mobile"
]
],
"_from": "react-native-simple-expand@>=0.1.2 <0.2.0",
"_id": "react-native-simple-expand@0.1.2",
"_inCache": true,
"_location": "/react-native-simple-expand",
"_nodeVersion": "6.9.2",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/react-native-simple-expand-0.1.2.tgz_1482924801764_0.7470715797971934"
},
"_npmUser": {
"name": "kyle-ssg",
"email": "kyle@solidstategroup.com"
},
"_npmVersion": "3.10.8",
"_phantomChildren": {},
"_requested": {
"raw": "react-native-simple-expand@^0.1.2",
"scope": null,
"escapedName": "react-native-simple-expand",
"name": "react-native-simple-expand",
"rawSpec": "^0.1.2",
"spec": ">=0.1.2 <0.2.0",
"type": "range"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/react-native-simple-expand/-/react-native-simple-expand-0.1.2.tgz",
"_shasum": "411f0aa2c64bbce33d303b92894ca601fd4458a0",
"_shrinkwrap": null,
"_spec": "react-native-simple-expand@^0.1.2",
"_where": "/Users/kylejohnson/accaapp-mobile",
"author": {
"name": "kyle-ssg"
},
"bugs": {
"url": "https://github.com/kyle-ssg/react-native-simple-expand/issues"
},
"dependencies": {},
"description": "Simple expandable view with extendable animations",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "411f0aa2c64bbce33d303b92894ca601fd4458a0",
"tarball": "https://registry.npmjs.org/react-native-simple-expand/-/react-native-simple-expand-0.1.2.tgz"
},
"gitHead": "afb5566716c9539242397367e3bfef2e0c219cda",
"homepage": "https://github.com/kyle-ssg/react-native-simple-expand#readme",
"keywords": [
"react-native",
"expand",
"reveal",
"expandable"
],
"license": "ISC",
"main": "index.js",
"maintainers": [
{
"name": "kyle-ssg",
"email": "kyle@solidstategroup.com"
}
],
"name": "react-native-simple-expand",
"optionalDependencies": {},
"peerDependencies": {
"react-native": ">=0.20.0"
},
"readme": "**Expand / collapse, component automatically calculates desired height**\n<img src=\"./screen.gif\"/>\n\n***Optional Props (See ./example for usage)***\n- maxHeight: How far can the view expand\n- minHeight: How much to show in the closed state\n- value: true or false\n- style: Style of child view\n- containerStyle: Style of container\n- animatedValue: Optional ```Animated.Value(minHeight)``` used to link animations inline with menu.\n\n\n***Minimal Example***\n\n```\nimport Expand = from 'react-native-simple-expand';\n```\n\n\n```\n render() {\n\n return (\n <View>\n <TouchableOpacity onPress={() => this.setState({ open: !this.state.open })}>\n <Text>Toggle Menu</Text>\n </TouchableOpacity>\n <Expand value={this.state.open}>\n <Text>\n Some very very very very very very very very very very very very very very very very very very very very great content\n </Text>\n </Expand>\n </View>\n );\n }\n```\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/kyle-ssg/react-native-simple-expand.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "0.1.3"
}