Skip to content

Commit

Permalink
feat: reimport the NestedTabView
Browse files Browse the repository at this point in the history
  • Loading branch information
hellohublot committed Jul 24, 2024
1 parent b77ef9e commit ffc10bc
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

android {
namespace 'so.onekey.app.wallet'
namespace 'so.onekey.app.wallet.widget'
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import com.facebook.react.uimanager.UIManagerHelper
import com.facebook.react.uimanager.UIManagerModule
import com.google.android.material.appbar.AppBarLayout
import com.google.android.material.appbar.CollapsingToolbarLayout
import so.onekey.app.wallet.R
import so.onekey.app.wallet.widget.R
import so.onekey.app.wallet.utils.Utils
import so.onekey.app.wallet.viewManager.homePage.TabProps
import so.onekey.app.wallet.viewManager.homePage.event.PageSelectedEvent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import so.onekey.app.wallet.widget.listener.OnTabSelectListener;
import so.onekey.app.wallet.widget.transition.ITabScaleTransformer;
import so.onekey.app.wallet.widget.transition.TabScaleTransformer;
import so.onekey.app.wallet.R;
import so.onekey.app.wallet.widget.R;

/**
* 滑动TabLayout,对于ViewPager的依赖性强
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package so.onekey.app.wallet
package so.onekey.app.wallet.widget

import com.facebook.react.uimanager.ViewManager
import com.facebook.react.ReactPackage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import androidx.fragment.app.Fragment
import so.onekey.app.wallet.R
import so.onekey.app.wallet.widget.R

class ViewFragment constructor(val childView: View) : Fragment() {
override fun onCreateView(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-tab-page-view",
"version": "1.0.6",
"version": "1.0.7",
"description": "React Native Tab Page View",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
3 changes: 3 additions & 0 deletions src/NestedTabView/index.native.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { requireNativeComponent } from 'react-native';

export default requireNativeComponent('NestedTabView');
1 change: 1 addition & 0 deletions src/NestedTabView/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default undefined;
7 changes: 1 addition & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ import PageHeaderView from './PageHeaderView';
import PageContentView from './PageContentView';
import PageManager from './PageManager';

import { requireNativeComponent, Platform } from 'react-native';

const NestedTabView =
Platform.OS === 'ios' || Platform.OS === 'android'
? requireNativeComponent('NestedTabView')
: undefined;
import NestedTabView from './NestedTabView';

export {
SelectedLabel,
Expand Down

0 comments on commit ffc10bc

Please sign in to comment.