我很高兴看到React Native可用,但我没有任何类型的Apple设备,我习惯在基于Debian的系统上进行编码.
是否有可能在本地测试应用程序,一旦我得到Mac,运行构建过程?
此外,任何人都知道什么时候Android版本可用?
实际上,我正在使用react-navigation 3.1.5在react-native 0.58上开发一个应用程序,但我无法使我的应用程序正常运行。
这是我的代码:
应用程序导航.js
const MainStack = createBottomTabNavigator({
Home: { screen: Home },
Pets: { screen: Pets, path: 'spidersecurity://terque/pets' },
Notifications: { screen: UserNotifications },
UpdateUser: { screen: UpdateUser },
});
const AppStack = createStackNavigator({
MainStack: { screen: MainStack, path: '' },
PetStack: { screen: PetStack }
});
const Main = createSwithNavigator({
App: { screen: AppStack, path: '' }
});
Run Code Online (Sandbox Code Playgroud)
基本上这是我的导航结构。我已将其设置AndroidManifest.xml为以下内容:
<intent-filter android:label="filter_react_native">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="spidersecurity" android:host="terque" />
</intent-filter> …Run Code Online (Sandbox Code Playgroud) javascript deep-linking reactjs react-native react-navigation
当我npm run dev在项目上运行时,webpack cmd 窗口中出现错误。
这是我特别收到的代码和错误消息,与父顶级 Vue 组件相关的代码,其中包含导航栏的详细信息,具体取决于用户是否登录:
编码
<script>
// import required components
import EventBus from './components/EventBus'
import router from './router/index.js'
import jwtDecode from 'jwt-decode'
export default {
data () {
const token = localStorage.usertoken
const decoded = jwtDecode(token)
return {
first_name: '',
surname: '',
email: '',
created: ''
}
return {
auth: false
}
try {
this.login()
} catch (error) {
console.log('Not currently signed in')
}
},
methods: {
logout () {
this.first_name = ''
this.surname …Run Code Online (Sandbox Code Playgroud) javascript ×2
react-native ×2
android ×1
debian ×1
deep-linking ×1
eslint ×1
ios ×1
reactjs ×1
vue.js ×1
xcode ×1