xref: /MusicFree/src/constants/pathConst.ts (revision 6c6f45bd179b399ce35f4a2d11d10bc67c68ba34)
1*6c6f45bdS猫头猫import { Platform } from "react-native";
2*6c6f45bdS猫头猫import RNFS from 'react-native-fs';
3*6c6f45bdS猫头猫
4*6c6f45bdS猫头猫export const basePath = Platform.OS === 'android'
5*6c6f45bdS猫头猫  ? RNFS.ExternalDirectoryPath
6*6c6f45bdS猫头猫  : RNFS.DocumentDirectoryPath
7*6c6f45bdS猫头猫
8*6c6f45bdS猫头猫
9*6c6f45bdS猫头猫export default {
10*6c6f45bdS猫头猫    pluginPath: `${basePath}/plugins/`,
11*6c6f45bdS猫头猫    dataPath: `${basePath}/data/`
12*6c6f45bdS猫头猫}