question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working with react-native listview (android)

See original GitHub issue

this plugin is not functional in android while using within listview, it is working fine without listview but don’t know what makes it to break with listview, see error in

Error- binary xml file line #10 :Binary XML file line#10 :Error inflating class fragment.

I searched a little bit and come to know that this issue is related with fragment being inflated within fragment(listview item may be a fragment), it may be related to following code in YoutubeView.java

public void init() { inflate(getContext(), R.layout.youtube_layout, this); youTubePlayerFragment = (YouTubePlayerFragment) mMainActivity.getFragmentManager() .findFragmentById(R.id.youtubeplayerfragment); youtubeController = new YouTubePlayerController(mMainActivity, YouTubeView.this); } I gone through little bit of youtube api documentation and come to know that we can use YouTubePlayerView as an alternative of YouTubePlayerFragment, I am willing to modify this library on my machine but don’t have much knowledge of android and hence unable to decide how should I proceed, any help regarding this issue or how should I proceed doing this will be appreciated, wanted to know how this react-native library be tested within android studio(if possible)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
davidohayon669commented, Nov 30, 2016

Im finishing work on an 1.0.0-alpha.1 version that address this issue as well

Will publish pull request these next few days

3reactions
davidohayon669commented, Dec 9, 2016

@tonygriv a matter of 3-4 days Tons of stuff to improve so hang on 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native : ListView is not working for andriod
I am working on application where I am using ScrollView , what I want to achieve when user run application then I want...
Read more >
Using List Views - React Native
React Native provides a suite of components for presenting lists of data. Generally, you'll want to use either FlatList or SectionList.
Read more >
Troubleshooting - React Native
These are some common issues you may run into while setting up React Native. If you encounter something that is not listed here,...
Read more >
Running On Device - React Native
Let's now set up an Android device to run our React Native projects. Go ahead and plug in your device via USB to...
Read more >
Android Native Modules
React Native invokes the method createNativeModules() on a ReactPackage in order to get the list of native modules to register. For Android, if ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found