Question: Native Component (Android) not show nothing #24945
Labels
Platform: Android
Android applications.
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
Type: Question
Issues that are actually questions and not bug reports.
Dear friend ,
i write sample native component like your document step by step but calling from js return blank screen (show white screen)
react-native version : 0.59.8
VideoPlayerPackage.java
package com.videoPlayer;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import com.videoPlayer.VideoPlayerManager;
import java.util.Collections;
import java.util.List;
public class VideoPlayerPackage implements ReactPackage {
}
VideoPlayerManager.java
import android.os.Build;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.view.View;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.uimanager.SimpleViewManager;
import com.facebook.react.uimanager.ThemedReactContext;
import com.facebook.react.uimanager.annotations.ReactProp;
public class VideoPlayerManager extends SimpleViewManager {
}
VideoPlayerView.java
import android.content.Context;
import android.net.Uri;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import com.facebook.react.uimanager.ThemedReactContext;
import com.novincinema.cinemamarket.R;
public class VideoPlayerView extends RelativeLayout {
}
video_test.xml
The text was updated successfully, but these errors were encountered: