You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
App & Flow is a Montreal-based React Native engineering and consulting studio. We partner with the world’s top companies and are recommended by [Expo](https://expo.dev/consultants). Need a hand? Let’s build together. [email protected]
4
+
5
+
App & Flow is a Montreal-based React Native engineering and consulting studio. We partner with the world’s top companies and are recommended by [Expo](https://expo.dev/consultants). Need a hand? Let’s build together. <[email protected]>
The goal of the library is to seamlessly and precisely handle your keyboard, scrollview and inputs when interacting with forms. While other solutions offer plug-and-play functionalities, we wanted to have something more precise and with more flexibility so that it can be used in any situation.
11
12
12
13
### Examples
14
+
13
15
We recreated two flows from popular apps to showcase our library in action.
14
16
The demo app code is available [here](https://github.com/AppAndFlow/react-native-magic-scroll-demo).
// This is the name of this text input, used by the `chainTo` prop
155
+
name="email"
156
+
// This is where you can pass your input. You need to spread the prop object. Make sure it is the last prop
157
+
renderInput={(magicProps) => (
158
+
<YourAwesomeInputlabel="Email"{...magicProps} />
159
+
)}
160
+
// This is the function that will make the text input named "password" focused when pressing the Enter or Return key on the device's keyboard
161
+
chainTo="password"
162
+
textInputProps={{
163
+
style: textInputStyle,
164
+
}}
165
+
/>
166
+
<MagicScroll.TextInput
167
+
name="password"
168
+
renderTop={() => <Text>Password</Text>}
169
+
textInputProps={{
170
+
secureTextEntry: true,
171
+
style: textInputStyle,
172
+
}}
173
+
/>
174
+
</MagicScroll.ScrollView>
175
+
);
176
+
};
177
+
```
178
+
130
179
## Advanced
131
180
132
181
As mentioned in the introduction, the drawbacks of a plug-and-play library are its limitations when deviating from standard functionality. That's precisely why our library allows for customization, enabling you to tailor its usage to suit your specific needs and use cases.
0 commit comments