الفرق بين المراجعتين لصفحة: «ReactNative/activityindicator»
جميل-بيلوني (نقاش | مساهمات) طلا ملخص تعديل |
جميل-بيلوني (نقاش | مساهمات) طلا ملخص تعديل |
||
| (3 مراجعات متوسطة بواسطة نفس المستخدم غير معروضة) | |||
| سطر 1: | سطر 1: | ||
<noinclude>{{DISPLAYTITLE: ActivityIndicator في React Native}}</noinclude> | <noinclude>{{DISPLAYTITLE:المكون ActivityIndicator في React Native}}</noinclude> | ||
يعرض مؤشّر تحميل دائريّ. | يعرض مؤشّر تحميل دائريّ. | ||
| سطر 75: | سطر 75: | ||
{| class="wikitable" | {| class="wikitable" | ||
!النوع | !النوع | ||
!مطلوب | |||
!القيمة الافتراضية | !القيمة الافتراضية | ||
|- | |- | ||
|قيمة منطقيّة | |قيمة منطقيّة | ||
|لا | |||
|true | |true | ||
|} | |} | ||
| سطر 85: | سطر 87: | ||
{| class="wikitable" | {| class="wikitable" | ||
!النوع | !النوع | ||
!مطلوب | |||
!القيمة الافتراضية | !القيمة الافتراضية | ||
|- | |- | ||
|[[ReactNative/colors|color]] | |[[ReactNative/colors|color]] | ||
|لا | |||
|<code>الرمادي '#999999'</code> على نظام التشغيل iOS | |<code>الرمادي '#999999'</code> على نظام التشغيل iOS | ||
| سطر 97: | سطر 101: | ||
{| class="wikitable" | {| class="wikitable" | ||
!النوع | !النوع | ||
!مطلوب | |||
!القيمة الافتراضية | !القيمة الافتراضية | ||
!المنصة | !المنصة | ||
|- | |- | ||
|قيمة منطقيّة | |قيمة منطقيّة | ||
|لا | |||
|true | |true | ||
|iOS | |iOS | ||
| سطر 108: | سطر 114: | ||
{| class="wikitable" | {| class="wikitable" | ||
!النوع | !النوع | ||
!مطلوب | |||
!القيمة الافتراضية | !القيمة الافتراضية | ||
|- | |- | ||
|enum('small', 'large') | |enum('small', 'large') | ||
| rowspan="2" |لا | |||
| rowspan="2" |'small' | | rowspan="2" |'small' | ||
|- | |- | ||
| سطر 118: | سطر 126: | ||
* [https://facebook.github.io/react-native/docs/activityindicator صفحة ActivityIndicator في توثيق React Native الرسمي.] | * [https://facebook.github.io/react-native/docs/activityindicator صفحة ActivityIndicator في توثيق React Native الرسمي.] | ||
[[تصنيف:ReactNative]] | [[تصنيف:ReactNative]] | ||
[[تصنيف:React Native Component]] | |||
المراجعة الحالية بتاريخ 14:01، 9 أكتوبر 2021
يعرض مؤشّر تحميل دائريّ.
مثال
import React, { Component } from "react";
import { ActivityIndicator, StyleSheet, Text, View } from "react-native";
class App extends Component {
render() {
return (
<View style={[styles.container, styles.horizontal]}>
<ActivityIndicator />
<ActivityIndicator size="large" />
<ActivityIndicator size="small" color="#0000ff" />
<ActivityIndicator size="large" color="#00ff00" />
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center"
},
horizontal: {
flexDirection: "row",
justifyContent: "space-around",
padding: 10
}
});
export default App;
import React from "react";
import { ActivityIndicator, StyleSheet, Text, View } from "react-native";
const App = () => (
<View style={[styles.container, styles.horizontal]}>
<ActivityIndicator />
<ActivityIndicator size="large" />
<ActivityIndicator size="small" color="#0000ff" />
<ActivityIndicator size="large" color="#00ff00" />
</View>
);
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center"
},
horizontal: {
flexDirection: "row",
justifyContent: "space-around",
padding: 10
}
});
export default App;
الخاصيات
خاصيات View
موروثة من خاصيات المكون View.
animating
إظهار المؤشر (true) أو إخفاؤه (false).
| النوع | مطلوب | القيمة الافتراضية |
|---|---|---|
| قيمة منطقيّة | لا | true |
color
لون المؤشّر .
| النوع | مطلوب | القيمة الافتراضية |
|---|---|---|
| color | لا | الرمادي '#999999' على نظام التشغيل iOS
|
hidesWhenStopped
ما إذا كان يجب إخفاء المؤشر عند عدم تحريكه (animating).
| النوع | مطلوب | القيمة الافتراضية | المنصة |
|---|---|---|---|
| قيمة منطقيّة | لا | true | iOS |
size
حجم المؤشر.
| النوع | مطلوب | القيمة الافتراضية |
|---|---|---|
| enum('small', 'large') | لا | 'small' |
| عدد على Android |