{"id":19916889,"url":"https://github.com/rubylouvre/fastui","last_synced_at":"2025-05-03T06:30:38.804Z","repository":{"id":137028827,"uuid":"48160707","full_name":"RubyLouvre/fastui","owner":"RubyLouvre","description":"一个基于react native的UI库","archived":false,"fork":false,"pushed_at":"2016-02-01T11:23:01.000Z","size":32,"stargazers_count":20,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T11:51:25.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RubyLouvre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-17T07:59:48.000Z","updated_at":"2020-10-17T02:57:33.000Z","dependencies_parsed_at":"2023-04-24T04:19:33.275Z","dependency_job_id":null,"html_url":"https://github.com/RubyLouvre/fastui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyLouvre%2Ffastui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyLouvre%2Ffastui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyLouvre%2Ffastui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyLouvre%2Ffastui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubyLouvre","download_url":"https://codeload.github.com/RubyLouvre/fastui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252154732,"owners_count":21702982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T21:47:56.631Z","updated_at":"2025-05-03T06:30:38.472Z","avatar_url":"https://github.com/RubyLouvre.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fastui\n\n[![react-native][rn-badge]][rn]\n\n[rn-badge]: https://img.shields.io/badge/react--native-v0.16.x-05A5D1.svg\n[rn]: https://facebook.github.io/react-native\n\nFastui components build with React Native\n\n## Carousel\n![carousel](https://raw.githubusercontent.com/roscoe054/fastui-carousel/master/demo.gif)\n```jsx\n\u003cCarousel\u003e\n  \u003cView style={styles.page}\u003e\n      \u003cImage\n          style={styles.img}\n          source={{uri: 'http://7xkm02.com1.z0.glb.clouddn.com/page1.png'}}\n      /\u003e\n  \u003c/View\u003e\n  \u003cView style={styles.page}\u003e\n      \u003cImage\n          style={styles.img}\n          source={{uri: 'http://7xkm02.com1.z0.glb.clouddn.com/page2.png'}}\n      /\u003e\n  \u003c/View\u003e\n  \u003cView style={styles.page}\u003e\n      \u003cImage\n          style={styles.img}\n          source={{uri: 'http://7xkm02.com1.z0.glb.clouddn.com/page3.png'}}\n      /\u003e\n  \u003c/View\u003e\n\u003c/Carousel\u003e\n```\n👉 [fastui-carousel full doc][fastui-carousel doc]\n[fastui-carousel doc]: https://github.com/roscoe054/fastui-carousel\n\n## Calendar\n![calendar](https://raw.githubusercontent.com/roscoe054/fastui-calendar/master/demo.gif)\n```jsx\nclass CalendarDemo extends Component {\n    render() {\n\n        // prepare options\n        const today = new Date(),\n            todayStr = today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate(),\n            aWeekLater = new Date(today.getTime() +  7 * 24 * 60 * 60 * 1000),\n            aWeekLaterStr = aWeekLater.getFullYear() + '-' + (aWeekLater.getMonth() + 1) + '-' + aWeekLater.getDate()\n\n        // Options\n        const holiday = {\n                '2016-01-01': '元旦',\n                '2016-02-07': '除夕',\n                '2016-02-08': '春节',\n                '2016-02-22': '元宵节',\n                '2016-04-03': '清明节',\n                '2016-05-01': '劳动节',\n                '2016-06-09': '端午节',\n            },\n\n            active = {\n                [todayStr]: 'fill',\n                [aWeekLaterStr]: 'fill',\n                '2016-03-05': 'border',\n                '2016-04-10': 'border',\n                '2016-04-25': 'border',\n                '2016-05-05': 'border',\n                '2016-06-25': 'border',\n            },\n\n            note = {\n                [todayStr]: '出发',\n                [aWeekLaterStr]: '返程',\n                '2016-03-05': '特价',\n                '2016-04-10': '特价',\n                '2016-04-25': '特价',\n                '2016-05-05': '特价',\n                '2016-06-25': '特价',\n            }\n\n        return (\n            \u003cView style={styles.container}\u003e\n                \u003cCalendar\n                    holiday={holiday}\n                    active={active}\n                    note={note}\n                    startTime='2016-01-01'\n                    endTime='2016-06-01'\n                    onPress={this.showDate}\n                /\u003e\n            \u003c/View\u003e\n        );\n    }\n\n    showDate(d) {\n        alert(d.date)\n    }\n}\n```\n👉 [fastui-calendar full doc][fastui-calendar doc]\n[fastui-calendar doc]: https://github.com/roscoe054/fastui-calendar\n\n## Form\n![form](https://raw.githubusercontent.com/roscoe054/fastui-form/master/demo.gif)\n```jsx\nvar model = {\n    studentName: {\n        type: f.fieldType.String,\n        label: \"学生姓名\",\n        value: \"Giulio\",\n        disabled: true,\n        placeholder: \"请填写姓名\"\n    },\n    age: {\n        type: f.fieldType.Number,\n        label: \"年龄\",\n        value: 18,\n        placeholder: \"请填写年龄\"\n    },\n    password: {\n        type: f.fieldType.Password,\n        label: \"密码\",\n        value: \"\",\n        placeholder: \"请填写密码\"\n    },\n    year: {\n        type: f.fieldType.Spinner,\n        label: \"入学年份\",\n        value: \"2015\",\n    },\n    rememberMe: {\n        type: f.fieldType.Boolean,\n        label: \"记住我\",\n        value: true,\n    }\n},\nForm = f.Form\n\nvar xform = React.createClass({\n    render: function() {\n        return (\n            \u003cView style={styles.container}\u003e\n                \u003cForm model={model} ref=\"form\"/\u003e\n                \u003cTouchableHighlight style={styles.button} onPress={this.onPress} underlayColor='#68CBE0'\u003e\n                    \u003cText style={styles.buttonText}\u003e提交\u003c/Text\u003e\n                \u003c/TouchableHighlight\u003e\n            \u003c/View\u003e\n        );\n    },\n    onPress : function() {\n        var value = this.refs.form.getValue();\n        if (value) { \n            alert(JSON.stringify(value)); \n        }\n    },\n});\n```\n👉 [fastui-form full doc][fastui-form doc]\n[fastui-form doc]: https://github.com/roscoe054/fastui-form\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubylouvre%2Ffastui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubylouvre%2Ffastui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubylouvre%2Ffastui/lists"}