2.0.0 • Published 1 month ago

sjzt-booknavi v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

USAGE

const App = () => {
    //booknavi.switch()用来切换地图和侧面图
    const booknavi = React.useRef(null);
    //书籍的位置信息
    let location = {
        layer: 1,
        column: 1,
        shelfNum: 3,
        direct: 'A',
    }; 
    //容器属性
    let containerStyle = {
        width: 400,
        height: 400,
        backgroundColor: '#f2f2f2',
    };
    return (
        <>
            <BookNaviReactNative
                libraryCode="65b075867701" //图书馆代码,不同的图书馆使用不同的地图配置
                location={location} 
                containerStyle={containerStyle}
                ref={ref => {
                    booknavi.current = ref;
                }}
            />
            <Button
                title="Switch"
                onPress={() => {
                    if (booknavi.current) {
                        booknavi.current.switch();
                    }
                }}
            />
        </>
    );
};
2.0.0

1 month ago

1.1.6

9 months ago

1.1.1

2 years ago

1.0.9

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago