Skip to content

A keyboard-awareness sandbox in React Native with functional components and Hooks

Notifications You must be signed in to change notification settings

csantarin/keyboard-aware

Repository files navigation

keyboard-aware

A prepared sandbox for writing keyboard-awareness visbility state management in React Native v0.63.0 using function components and Hooks.

Setup

  1. Clone the repository
git clone https://github.com/csantarin/keyboard-aware.git
cd keyboard-aware
  1. Install its dependencies.
yarn
  1. Install a preferred debugging utility:

  2. Add the Android (root: /android) and iOS (root: /ios) projects to Android Studio and Xcode, respectively. Additional troubleshootings:

    • Xcode: "Failed to set plugin placeholders" when loading the iOS project into Xcode.

      1. Clean (Shift+Cmd+K) the project.
      2. On the Project navigator, choose KeyboardAware. You will see a panel with tabs such as Info, Build Settings, Swift Packages.
      3. On the same screen, choose Targets > KeyboardAware. You will see a panel with tabs starting with General, Capabilities, Resource Tags, etc.
      4. On those tabs, choose Build Phases. You will see a list of dropdowns on the panel.
      5. On those dropdowns, choose Embed App Extensions to open it.
      6. Under the Embed App Extensions dropdown, check Copy only when installing.
    • Android Studio: No known issues yet.

Running

  1. Spin up the bundler.
yarn start
  1. Hook up to an Android or iOS emulator.

  2. Debug on your preferred utility. On Chrome Developer Tools, check the console out at http://localhost:8081/debugger-ui.

Testing

To see the automated tests:

yarn test

Note: Additional test cases are encouraged. Please create your pull request to offer suggestions.

About

A keyboard-awareness sandbox in React Native with functional components and Hooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published