Comments (2)
Thanks @bcgilliom
I will have a look on it over weekend (actually I think I mocked all low level hooks/views, and KeyboardAwareScrollView
just consumes them, so theoretically it should work, but I haven't tested it).
And yes, thank you for raising this issue 🙏
from react-native-keyboard-controller.
@bcgilliom may I kindly ask you to check/review PR #320?
I've added View
as a mock for KeyboardAvoidingView
and KeyboardStickyView
and added ScrollView
as a mock for KeyboardAwareScrollView
. But I don't know whether it's a good practice, because in snapshot testing non-view props (such as behavior
for KeyboardAvoidingView
) will be added to snapshot.
From one point it's good, because if someone accidentally changes it -> unit tests will fail, but I've tried to use default KeyboardAvoidingView
and it's not including custom props into snapshot (Because a real implementation of KeyboardAvoidingView
is used)
from react-native-keyboard-controller.
Related Issues (20)
- KeyboardAwareScrollView not working on first load of the app after fresh install in production iOS builds HOT 1
- Bottom Sheet component compatibility/custom native wrapper(long-term feature) HOT 4
- KeyboardAwareScrollView scrolling too much when pasting a lot of content in multiline inputibox HOT 8
- KeyboardAwareScrollView has no ref prop HOT 3
- [ios] build error 'react_native_keyboard_controller-Swift.h' file not found HOT 8
- modal looks weird after use TextInput on KeyboardAwareScrollView HOT 13
- Animated keyboard values do not update if the focussed TextInput exists within a modal HOT 9
- Compilation Error on iOS with Fabric and `useFrameworks: 'static'` HOT 3
- Add an ability to show views over the keyboard (when it's open)
- KeyboardToolbar component with different text input types
- useKeyboardAnimation hook always returns 0 HOT 9
- KeyboardProvider changes windowSoftInputMode HOT 5
- Weird Scroll when change text event fires on android 9 and 10 HOT 13
- is there any hooks that i can use to determine if keyboard is visible or not? HOT 3
- Opening Modal prevents proper resizing of layout HOT 3
- Runtime Error on iOS HOT 12
- 🐛App Crashes with "ReanimatedCommitMarker: assertion failed" in Official Example on Android Using React Native New Architecture HOT 4
- KeyboardAvoidingView doesn't work as intended on Android 10 HOT 2
- KeyboardAwareScrollView not work in TextInput nested in FlatList component HOT 9
- TextInput does not stick in the right place with KeyboardAvoidingView and ScrollView HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-keyboard-controller.