Skip to content

Support react native 0.85 #116

@faljabi

Description

@faljabi

Describe the bug
React native deprecated absoluteFillObject

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade to rn 0.85
  2. OTP containers are getting close to each other when it is filled

Expected behavior
OTP containers should remain the same position

Additional context
I patched it with the below for now.

diff --git a/node_modules/react-native-otp-entry/dist/OtpInput/OtpInput.styles.js b/node_modules/react-native-otp-entry/dist/OtpInput/OtpInput.styles.js
index 115c729..9073662 100644
--- a/node_modules/react-native-otp-entry/dist/OtpInput/OtpInput.styles.js
+++ b/node_modules/react-native-otp-entry/dist/OtpInput/OtpInput.styles.js
@@ -21,7 +21,7 @@ exports.styles = react_native_1.StyleSheet.create({
         fontSize: 28,
     },
     hiddenInput: {
-        ...react_native_1.StyleSheet.absoluteFillObject,
+        ...react_native_1.StyleSheet.absoluteFill,
         ...react_native_1.Platform.select({
             ios: {
                 opacity: 0.02,

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions