Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Content> components not renders correctly on react-native 0.63.0 #3183

Closed
6 tasks done
keima opened this issue Jul 10, 2020 · 35 comments
Closed
6 tasks done

<Content> components not renders correctly on react-native 0.63.0 #3183

keima opened this issue Jul 10, 2020 · 35 comments
Labels

Comments

@keima
Copy link

keima commented Jul 10, 2020

I have gone through these following points

Issue Description

node, npm, react-native, react and native-base version, expo version if used, xcode version

node 10.18.0
npm 6.14.3
react-native 0.63.0
react 16.13.1
native-base 2.13.12
XCode 11.5

Expected behaviour

<Content> components renders correctly.

Actual behaviour

<Text>Hi!</Text> is not rendered and output error log below:

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of `Content`.

Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.

Steps to reproduce

import React, { Component } from 'react'
import { Container, Content } from 'native-base'

const Foo = () => (
  <Container>
    <Content>
      <Text>Hi!</Text>
    </Content>
  </Container>
)

Is the bug present in both iOS and Android or in any one of them?

Both.

Any other additional info which would help us debug the issue quicker.

###Important

If you want your issue to be looked at quicker, attach a snack reproducible with your issue. Makes it easier for us!

@cristian-rita
Copy link

This project is no longer maintained. They don't even make a build from master. Few issues are already fixed there.

@younes200
Copy link

younes200 commented Jul 10, 2020

Probleme related to change in ScrollView APSL/react-native-keyboard-aware-scroll-view#429 once a PR merge in react-native-keyboard-aware-scroll-view this should be fixed.

@rmgpinto
Copy link

@cristian-rita do you recommend other ui lib that's properly maintained?

@codler
Copy link
Contributor

codler commented Jul 11, 2020

I have the same issue.

codler added a commit to codler/NativeBase that referenced this issue Jul 12, 2020
…pgrade depencenciesFix for react native 0.63.0.
@codler
Copy link
Contributor

codler commented Jul 12, 2020

I have forked the repo to fix this issue.

npm i @codler/native-base

You will need to remove old fonts in Copy Bundle Resources in Xcode after install

@younes200
Copy link

Thanks @codler.
Why removing old fonts is required ? I have issues rending font on iOS is it the case for you too ?

@codler
Copy link
Contributor

codler commented Jul 12, 2020

You will probably get duplicate output file error when building ios, https://medium.com/codespace69/xcode-reactnative-ios-xcode-build-error-with-duplicate-output-file-when-install-new-library-36dfbcb5d223, but if not, then you dont need to do that.

@john-e
Copy link

john-e commented Jul 12, 2020

Thanks @codler

@MartinMouritzen
Copy link

I guess I didn't do my homework well enough, choosing Native-Base. It does seem a bit abandoned, which makes me sad. I too would like recommendations for UI projects that are maintained.

@spdaly
Copy link

spdaly commented Jul 13, 2020

@codler Thanks for the effort. Everything worked perfectly.

@MartinMouritzen Agree. I spent A LOT of time looking at a lot of different kits and decided on NB. Unfortunately, this has been my experience with the RN ecosystem. A lot of great libraries/kits/etc that have great promise but fall short.

@muyaszed
Copy link

LOL, I don't really realised this repo is kind of abandoned until I had this problem. But really it is quite a nice lib. Somebody should revive this one.

@Aung-Myint-Thein
Copy link

I have forked the repo to fix this issue.

npm i @codler/native-base

You will need to remove old fonts in Copy Bundle Resources in Xcode after install

I saw you forked rnkasv too. can I just install it but not the whole native-base? @codler

@vadympetryshyn
Copy link

This project is no longer maintained. They don't even make a build from master. Few issues are already fixed there.

Is it really true? New pull requests no longer be merged? I've just started new project with RNB, should I find another UI Kit?

@jacargentina
Copy link

@hanykumar https://github.com/APSL/react-native-keyboard-aware-scroll-view/releases/tag/v0.9.2 just released!
Please update dependency and bump for new release ?

@raazatul7
Copy link

Is this issue fixed??
Please fix it asap and close it!

@madhumurugan89
Copy link

will this issue be fixed ? If not please suggest another UI library for react native

@ilya-bmi
Copy link
Contributor

Please fix the issue!

@Aung-Myint-Thein
Copy link

Aung-Myint-Thein commented Jul 19, 2020

APSL/react-native-keyboard-aware-scroll-view#443 (comment)

npm install https://github.com/APSL/react-native-keyboard-aware-scroll-view#v0.9.2

I updated the react-native-keyboard-aware-scroll-view with the command from the comment and <Content> is working again :D Hope this solves you guys too.

@jacargentina
Copy link

jacargentina commented Jul 19, 2020

I've tried @Aung-Myint-Thein but didn't work.

Then i've tried this on my package.json:

  "resolutions": {
    "native-base/react-native-keyboard-aware-scroll-view": "https://github.com/APSL/react-native-keyboard-aware-scroll-view#v0.9.2"
  }

Then yarn install and it worked!
While i wait for a proper native-base release. Cheers!

@Aung-Myint-Thein
Copy link

I've tried @Aung-Myint-Thein but didn't work.

Then i've tried this on my package.json:

  "resolutions": {
    "native-base/react-native-keyboard-aware-scroll-view": "https://github.com/APSL/react-native-keyboard-aware-scroll-view#v0.9.2"
  }

Then yarn install and it works!�
While i wait for a proper native-base release. Cheers!

Weird. It is not working for me after fresh npm install. I tried the resolutions method and it is still not working for me. Which React Native, Native Base versions are you using? @jacargentina ?

@jacargentina
Copy link

jacargentina commented Jul 19, 2020

@Aung-Myint-Thein i'm using yarn, not npm (i dont think npm supports the resolutions feature); BTW i'm with rn 0.63 and latest published native-base

@yogesh1623
Copy link

yogesh1623 commented Jul 20, 2020

Please fix this issue Asap!

@JerakRus
Copy link

@sankhadeeproy007
is the repository really failing anymore? and will this critical issue be fixed?

@sankhadeeproy007
Copy link
Contributor

Guys, is there a PR for this anywhere?
I'll do a release quickly if I there's one.

sankhadeeproy007 pushed a commit that referenced this issue Jul 20, 2020
@ankitghosh
Copy link

This has been fixed after the latest update! You guys can update the nativebase package and it will work

@sankhadeeproy007
Copy link
Contributor

Thanks to @codler for their help in fixing this.

@Aung-Myint-Thein
Copy link

It is working now in my dev but my release apk is crashing upon start with

Name FATAL EXCEPTION: mqt_native_modules
Reason java.lang.ClassCastException: com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.String

Is it happening the same for you guys?..

@nozbwang
Copy link

nozbwang commented Aug 10, 2020

please fix it asap, thank you.
It spends me a lot of time finding my problem is caused by this lovely native-base package. I have to roll back to older native-base version (v2.6.1) so i can continue my work.

微信图片_20200810221549

@oriharel
Copy link

If this repo is not being maintained anymore, maybe Paper?

@Ar7profacex
Copy link

@codler Thank you very much, it worked perfectly, greetings from Chile

@impactcolor
Copy link

I dumped content

...

To
<>
....
</>

@IamMasterWayne
Copy link

+1

@Florido14
Copy link

please fix it asap, thank you. It spends me a lot of time finding my problem is caused by this lovely native-base package. I have to roll back to older native-base version (v2.6.1) so i can continue my work.

微信图片_20200810221549
I have the same issue, you can fix it?

@nozbwang
Copy link

nozbwang commented Nov 8, 2021

please fix it asap, thank you. It spends me a lot of time finding my problem is caused by this lovely native-base package. I have to roll back to older native-base version (v2.6.1) so i can continue my work.
微信图片_20200810221549
I have the same issue, you can fix it?

I fixed it by changing native-base version in my project ( for example changing to the lower version v2.6.1)。

You can upgrade the native-base package to the lastest stable version to find out whether the problem is fixed.

@stale
Copy link

stale bot commented Feb 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 2, 2022
@stale stale bot closed this as completed Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests