React Native TextInput Effects 项目教程

React Native TextInput Effects 项目教程

react-native-textinput-effectsText inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.项目地址:https://gitcode.com/gh_mirrors/re/react-native-textinput-effects

1. 项目的目录结构及介绍

react-native-textinput-effects/
├── src/
│   ├── effects/
│   │   ├── Akira.js
│   │   ├── Hoshi.js
│   │   ├── Isao.js
│   │   ├── Jiro.js
│   │   ├── Kaede.js
│   │   ├── Madoka.js
│   │   ├── Makiko.js
│   │   ├── Sae.js
│   │   ├── Shoko.js
│   │   └── TextInputEffects.js
│   ├── index.js
├── example/
│   ├── App.js
│   ├── index.js
│   ├── package.json
│   └── README.md
├── .gitignore
├── .npmignore
├── LICENSE
├── package.json
├── README.md

目录结构介绍

  • src/: 包含项目的主要源代码。
    • effects/: 包含各种TextInput效果的实现文件。
    • index.js: 项目的入口文件,导出所有效果组件。
  • example/: 包含一个示例应用,展示如何使用这些TextInput效果。
    • App.js: 示例应用的主要文件。
    • index.js: 示例应用的入口文件。
    • package.json: 示例应用的依赖配置文件。
    • README.md: 示例应用的说明文档。
  • .gitignore: Git忽略文件配置。
  • .npmignore: npm忽略文件配置。
  • LICENSE: 项目许可证。
  • package.json: 项目依赖配置文件。
  • README.md: 项目说明文档。

2. 项目的启动文件介绍

src/index.js

import { TextInputEffects } from './effects/TextInputEffects';

export {
  Akira,
  Hoshi,
  Isao,
  Jiro,
  Kaede,
  Madoka,
  Makiko,
  Sae,
  Shoko,
  TextInputEffects
} from './effects';

example/index.js

import { AppRegistry } from 'react-native';
import App from './App';

AppRegistry.registerComponent('TextInputEffectsExample', () => App);

启动文件介绍

  • src/index.js: 导出所有TextInput效果组件,供外部使用。
  • example/index.js: 注册示例应用的入口组件,启动示例应用。

3. 项目的配置文件介绍

package.json

{
  "name": "react-native-textinput-effects",
  "version": "0.5.0",
  "description": "TextInput effects for React Native",
  "main": "src/index.js",
  "scripts": {
    "start": "react-native start",
    "test": "jest"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/halilb/react-native-textinput-effects.git"
  },
  "keywords": [
    "react-native",
    "textinput",
    "effects",
    "animated"
  ],
  "author": "Halil Bilir <hbilir@gmail.com>",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/halilb/react-native-textinput-effects/issues"
  },
  "homepage": "https://github.com/halilb/react-native-textinput-effects#readme",
  "dependencies": {
    "prop-types": "^15.6.0"
  },
  "devDependencies": {
    "babel-jest": "^22.4.3",
    "babel-preset-react-native": "^4.0.0",
    "jest": "^22.4.3",
    "react": "^16.3.0-alpha.1",
    "react-native": "^0.54.0",
    "react-test-renderer": "^16.3.0-alpha.1"
  },
  "jest": {
   

react-native-textinput-effectsText inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.项目地址:https://gitcode.com/gh_mirrors/re/react-native-textinput-effects

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

施余牧

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值