How to implement function/method that need class as parameter. To build as react-native component

217
April 10, 2017, at 1:24 PM

i wanna ask. I already create an android library. In native android this library called like this

public class activityName extends AppCompatActivity{
private String path;
private VideoPlayer videoPlayer;
private VideoPlayerControl videoPlayerControl;
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_trim);
    videoPlayer = (VideoPlayer) findViewById(R.id.videoPlayer);
    videoPlayerControl = (VideoPlayerControl) findViewById(R.id.videoPlayerControl);
    setup();
}
private void setup(){
    // set video Path to Video Player
    // @param1 = Video file path
    videoPlayer.setSource(path);
    // set VideoPlayer to VideoPlayerControl
    // @param1 = VideoPlayer Class
    // how to implement this method to React Native Component ??
    videoPlayerControl.setup(videoPlayer);
}
}

the question is how to implement the function/method that needed class as parameters in React-native component ? is that possible ?

thanks

READ ALSO
Android handler running asynchronously

Android handler running asynchronously

I have a function, gamePlay(), which looks like this:

237
TextArea overflowing [Codename One]

TextArea overflowing [Codename One]

We have a app which involves posting new itemsOur testers have noticed that when typing in the TextAera the text scrolls to some degree, but then spills outside of the border of the component

243
Ng-Cart Paypal not working on Mobile Version Phonegap

Ng-Cart Paypal not working on Mobile Version Phonegap

I am making an app with Paypal Checkout FunctionalityI am using http://ngcart

162