React, {Component} from 'react';
import {
View,
StyleSheet,
ScrollView,
Text,
} from 'react-native...ECMAScript),或者调用 observable 或 extendObservable 函数(ES5);
创建一个叫做 ObservableListStore 的类;
创建一个可观察的数组 list;
创建三个操作列表数组的方法.../app/mobx/listStore'
import {
AppRegistry,
Navigator
} from 'react-native'
class ReactNativeMobX...实现对数据的操作。..., { Component } from 'react'
import { View, Text, TextInput, TouchableHighlight, StyleSheet } from 'react-native